SCU_MAKE_COMPLETION_STATUS(9)
π SCU_MAKE_COMPLETION_STATUS(9) β like, the Kernel API Manual one, bestie
okay so real talk: this is a page from the Kernel API Manual, and it's about one (1) macro. Her name is SCU_MAKE_COMPLETION_STATUS. She builds completion codes. That's the whole vibe. Let's get into it π
β¨ NAME β¨
SCU_MAKE_COMPLETION_STATUS β honestly? the name is the whole personality. it makes a completion status. no cap.
π¦ SYNOPSIS π¦
SCU_MAKE_COMPLETION_STATUS (completion_code );
that's it. one argument, in, out, slay. β¨
πΈ ARGUMENTS πΈ
completion_codeβ okay so the original page literally says "-- undescribed --" π which is giving "group project member who did not contribute." so likeβ¦ it's the completion code you're passing in. that's genuinely all the documentation we got, and I'm not gonna make stuff up about it. respect the source material π
π DESCRIPTION π
okay so here's the actual tea β: this macro takes a completion code and performs the shift and mask operations on it π§ β like a little glow-up routine β to turn it into a completion code that can be compared to a SCU_GET_COMPLETION_TL_STATUS.
that's it. that's the function. she takes your code, she shifts, she masks, she hands it back ready to be compared. main character energy, zero drama. π
ngl, "shift and mask" sounds simple but if you get it wrong your comparison is off and everything downstream is a mess. so likeβ¦ do it right. π
π₯ SEE ALSO π₯
the whole friend group, fr fr:
- Kernel file
./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_NORMALIZE_COMPLETION_STATUS(9)SCU_GET_COMPLETION_SDMA_STATUS(9)SCU_GET_COMPLETION_PEG(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, go read them. they're all in the same little isci friend group, iykyk π«Ά
that's the whole page, bestie π go forth and mask some bits π
source: ./drivers/scsi/isci Β· dated: October 2026 Β· SCU_MAKE_COMPLETION_STATUS(9) 4ever πβ¨
π¦ 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