queue_cmd_ring(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, this is the Kernel API Manual page for queue_cmd_ring(9), and we're gonna make it make sense together πŸ’–


✨ NAME ✨

queue_cmd_ring β€” queue cmd to ring or internally πŸŽ€

it's giving "put the cmd where it needs to go" energy, fr fr.

πŸ’« SYNOPSIS πŸ’«

int queue_cmd_ring (struct tcmu_cmd *tcmu_cmd , sense_reason_t *scsi_err );

that's literally the whole signature, no cap ✨

πŸ¦‹ ARGUMENTS πŸ¦‹

  • tcmu_cmd β€” cmd to queue. like, this is the cmd bestie, and it's getting queued πŸ’…
  • scsi_err β€” TCM error code if failure (-1) returned. so if things go -1, this is where the TCM error code lands πŸ‘€

πŸ”₯ RETURN πŸ”₯

  • -1 β€” we cannot queue internally or to the ring. not slay. 😭
  • 0 β€” success. periodt. πŸ‘‘
  • 1 β€” internally queued to wait for ring memory to free. it's lowkey waiting its turn 🫢

🌈 SEE ALSO 🌈

go read those too, bestie, iykyk 🧚


source/version: ./drivers/target β€’ date: October 2026 β€” bye bestie, go queue responsibly πŸ’…βœ¨

πŸ“¦ where this page comes from