SCU_GET_COMPLETION_PORT(9)
π SCU_GET_COMPLETION_PORT β the kernel API manual, bestie edition β¨
Okay so listen, we're looking at SCU_GET_COMPLETION_PORT from the SCU_GET_COMPLETION_PORT(9) man page, a whole kernel API situation, and honestly? It's a little one. A little baby macro. But we're gonna give it the main character energy it deserves π
πΈ NAME πΈ
SCU_GET_COMPLETION_PORT β and yes the original description line is literally empty, so no cap, that's all the NAME section gives us π the macro name and vibes.
β¨ SYNOPSIS β¨
SCU_GET_COMPLETION_PORT (completion_code );
That's it. One argument, one call. She's lowkey simple like that π¦
π«Ά ARGUMENTS π«Ά
completion_codeβ the original page says, and I quote-ish, "-- undescribed --" π not a single word of description. Iconic behaviour honestly. So likeβ¦ it's the completion code you pass in. That's all we know. We respect the mystery π
π DESCRIPTION π
This macro returns the logical port index from the completion code. That's the whole thing! That's the plot! You hand it a completion code, it hands you back a port index, and it does it logically, which is the best way to do things honestly π₯
No options, no env vars, no exit statuses, no bugs listed β she's a one-liner through and through π
Heads up bestie: this is literally all the original page says about behaviour, so don't go reading more into it than that. π
π SEE ALSO π
The kernel file that lives with all this:
./drivers/scsi/isci/scu_completion_codes.h
And the full squad of related macros, all of them, no skipping, fr fr:
SCU_COMPLETION_TYPE(9)SCU_GET_COMPLETION_TYPE(9)SCU_GET_COMPLETION_STATUS(9)SCU_GET_COMPLETION_TL_STATUS(9)SCU_MAKE_COMPLETION_STATUS(9)SCU_NORMALIZE_COMPLETION_STATUS(9)SCU_GET_COMPLETION_SDMA_STATUS(9)SCU_GET_COMPLETION_PEG(9)SCU_GET_PROTOCOL_ENGINE_INDEX(9)SCU_GET_COMPLETION_INDEX(9)SCU_GET_FRAME_INDEX(9)SCU_GET_FRAME_ERROR(9)
And that's the page, bestie! π§ This little gem comes courtesy of ./drivers/scsi/isci, dated October 2026 β so like, freshly stamped and ready to slay. Go forth and get those completion ports πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms