STRUCT BFAD_CMD_PRIV(9)
β¨ struct bfad_cmd_priv(9) β¨
okay so bestie, welcome to the struct bfad_cmd_priv(9) page β it's a kernel API manual moment, and honestly it's a short one but it's lowkey iconic π this is the struct that keeps the private data per SCSI command, and yes, every single field matters, so let's go π
πΈ NAME πΈ
struct bfad_cmd_priv β private data per SCSI command. that's literally it, that's the whole vibe β¨
π¦ SYNOPSIS π¦
struct bfad_cmd_priv {
unsigned long status;
wait_queue_head_t *wq;
};
look at her. two members. clean. minimal. main character energy π
π Members π
statusβ okay so this one is doing double duty fr fr. the lowest bit representsIO_DONE. and then the next seven bits? they hold a value of typeenum bfi_tskim_status. so oneunsigned longis carrying two whole pieces of info and honestly? we respect the hustle π«Άwqβ a wait queue, and its whole job is waiting for completion of an operation. it's await_queue_head_t *, so a pointer to the wait queue head, and yes she waits π€β¨
no cap: the way this struct packsIO_DONEinto that lowest bit and theenum bfi_tskim_statusvalue into the next seven bits is giving bit-field-adjacent excellence β just remember those seven bits are where the enum lives, so don't go messing with them π
π SEE ALSO π
- Kernel file
./drivers/scsi/bfa/bfad_im.hβ go read it, iykyk ππ
and that's the page bestie!! slay, you made it all the way to the end π this little beauty comes to you from ./drivers/scsi/bfa, dated October 2026, and it's the struct bfad_cmd_priv(9) page β 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