alua_rtpg_queue(9)
π alua_rtpg_queue(9) β the kernel API manual, bestie edition
okay so welcome to alua_rtpg_queue(9), a page from the Kernel API Manual π yes we're in the kernel API manual today, it's giving very "my code runs in ring 0 and yours doesn't" energy, and honestly? iconic.
β¨ NAME β¨
alua_rtpg_queue β causes RTPG to be submitted asynchronously, bestie. not now. later. whenever the kernel feels cute. π«
π¦ SYNOPSIS π¦
bool alua_rtpg_queue (struct alua_port_group *pg , struct scsi_device
*sdev , struct alua_queue_data *qdata , bool force );
four args, one bool coming back at you. that's the whole vibe check. π«Ά
π ARGUMENTS π
pgβ the ALUA port group that's associated withsdev. it's like,sdev's plus-one at the port group party. πsdevβ the SCSI device you want to submit an RTPG for. yes, that one. πqdataβ info about the callback that gets invoked after the RTPG. like a little note saying "hey, when you're done, do this." ποΈβ¨forceβ whether or not to submit an RTPG if a work item that will submit an RTPG has already been scheduled. no cap, that's literally what it decides. π₯
πΈ DESCRIPTION πΈ
so the way this works: it returns true if and only if alua_rtpg_work will be called asynchronously. and that function is the one responsible for calling qdata->fn. so like... this function doesn't do the callback. it just makes sure the callback is gonna happen. it's the group-chat organizer, not the person showing up. π
big deal energy: true if and only if. the "if and only if" is not a suggestion, it's fr fr a contract. π§
β CONTEXT β
may be called from atomic context (alua_check) only if the caller holds an sdev reference. that "only if" is doing a lot of heavy lifting here β no reference, no entry. π
π SEE ALSO π
- Kernel file
./drivers/scsi/device_handler/scsi_dh_alua.cβ go read it, iykyk π
and that's the page!! π if you made it this far you're a real one. this little slice of the kernel API manual came to you from ./drivers/scsi/device_handler, dated October 2026 β slay, see you in the source tree bestie ππ
π
π¦ 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