SCU_GET_COMPLETION_INDEX(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… SCU_GET_COMPLETION_INDEX(9) β€” the Kernel API Manual, but make it make sense

okay so bestie, this is a page from the Kernel API Manual and it's literally about one macro. one. and honestly? it's kind of iconic in its minimalism. let's get into it πŸŽ€


✨ NAME ✨

SCU_GET_COMPLETION_INDEX β€” and that's it. no description. no little tagline. the original page left this blank, so like... it's giving mysterious main character energy πŸ™ˆ the name is the whole personality here, iykyk.


🌸 SYNOPSIS 🌸

SCU_GET_COMPLETION_INDEX (completion_code );

that's the whole call. one argument, in, out, done. periodt πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • completion_code β€” okay so lowkey the original documentation literally says -- undescribed -- for this one 😭 which means nobody wrote down what it is, so I'm not gonna make something up. it's a completion_code. it's real. it's there. that's all we got, fr fr.
ngl this is the manpage equivalent of "ask your mom" β€” we're not told anything more, and I refuse to invent lore 🫢

πŸ’– DESCRIPTION πŸ’–

okay here's the actual tea, and it's genuinely cute:

this macro returns the index of the completion, and that index is either a TCi or an RNi, depending on the completion type ✨

so: you hand it a completion_code, it hands you back an index. which flavor of index you get (TCi vs RNi) is decided by whatever the completion type is. that's the whole vibe check. no cap, that's it, that's the macro πŸ‘‘


🌈 SEE ALSO 🌈

kiss your faves goodnight, because this is a whole friend group:

the kernel file it lives with:

  • ./drivers/scsi/isci/scu_completion_codes.h πŸ“

and the entire SCU_ squad:

like, they all showed up to the group chat. every single one. and you should probably go read them too πŸ’œ


that's the whole page, bestie β€” short, sweet, and straight out of ./drivers/scsi/isci with a October 2026 stamp on it πŸ—“οΈβœ¨ go forth and get those completion indices, you absolute legend πŸ‘‘πŸ’–

πŸ“¦ where this page comes from