pmcraid_queuecommand_lck(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay bestie, so this whole page is about pmcraid_queuecommand_lck(9) from the Kernel API Manual β€” literally the function whose entire job is Queue a mid-layer request. that's it, that's the vibe ✨


πŸ’… SYNOPSIS πŸ’…

enum scsi_qc_status pmcraid_queuecommand_lck (struct scsi_cmnd *scsi_cmd
);

πŸŽ€ ARGUMENTS πŸŽ€

  • scsi_cmd β€” the scsi command struct, aka the little parcel of a command you're handing over 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea πŸ“ β€” this function queues up a request that the mid-layer generated. the midlayer calls this routine while it's already inside host->lock, no cap.

and like, heads up: some of the functions that get called by queuecommand would use cmd block queue locks, specifically free_pool_lock and pending_pool_lock. just so you know the lock situation bestie, iykyk πŸ”₯

Return value: 0 on success β€” slay πŸ’–. then SCSI_MLQUEUE_DEVICE_BUSY if the device is busy 😭, and SCSI_MLQUEUE_HOST_BUSY if the host is busy πŸ’€.


πŸ’œ SEE ALSO πŸ’œ

kernel file ./drivers/scsi/pmcraid.c β€” and honestly the whole extended family, main character energy every single one of them πŸ‘‘:


and that's the page bb πŸ’œ this one came out of ./drivers/scsi, dated October 2026 β€” go touch some kernel code, ily, bye 🧚✨

πŸ“¦ where this page comes from