SCU_GET_COMPLETION_PEG(9)
πΈ SCU_GET_COMPLETION_PEG(9) πΈ
okay bestie, welcome to the Kernel API Manual β yes, that Kernel API Manual, the one with the lore π
. This page is all about a macro with a name so long it's giving "my coffee order" energy: SCU_GET_COMPLETION_PEG. It lives in the SCSI/isci corner of the kernel and it's lowkey iconic. Let's get into it π«Ά
β¨ SYNOPSIS β¨
SCU_GET_COMPLETION_PEG (completion_code );
that's it. one argument. she's simple, she's clean, she slays π
π ARGUMENTS π
completion_codeβ and honestly? the original docs just say -- undescribed -- ππ which is the most "we'll fill this in later" vibe ever. not me leaving aTODOin production fr fr. so yeah, that's the whole description we've got: undescribed. no cap. π
π₯ DESCRIPTION π₯
okay so here's the actually useful part: this macro returns the Protocol Engine Group from the completion code. that's it, that's the tea β. you hand it a completion code, it hands you back the Protocol Engine Group. main character energy, minimal dialogue, in and out π
bestie note: the argument is literally listed as undescribed above, so don't go inventing extra behaviour in your head β this page tells you what it says and nothing more π
π SEE ALSO π
the whole squad, and yes they all have names that start with SCU_ because the naming committee had a vision π
- the kernel file it all lives in:
./drivers/scsi/isci/scu_completion_codes.hπ¦ 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_PORT(9)SCU_GET_PROTOCOL_ENGINE_INDEX(9)SCU_GET_COMPLETION_INDEX(9)SCU_GET_FRAME_INDEX(9)SCU_GET_FRAME_ERROR(9)
like, that's thirteen references plus the header file. she has a friend group, okay, she's not lonely πΈ
and that's the whole page, bestie!! go forth and get those completion PEGs π
π sign-off szn: this little beauty ships from ./drivers/scsi/isci, dated October 2026 β periodt. π
π¦ 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