virtscsi_add_cmd(9)
π virtscsi_add_cmd(9)
okay so welcome to the Kernel API Manual, section 9 bestie β this is the page for virtscsi_add_cmd, and it's honestly so straightforward it ate. Let's get into it π«Ά
β¨ NAME β¨
virtscsi_add_cmd β add a virtio_scsi_cmd to a virtqueue, optionally kick it
like. that's the whole vibe. you're shoving a command into a virtqueue, and maybe kicking it, your call π
πΈ SYNOPSIS πΈ
int virtscsi_add_cmd (struct virtio_scsi_vq *vq , struct virtio_scsi_cmd *cmd , size_t req_size , size_t resp_size , bool kick );
copy it exactly, no cap, the spacing is part of the look π₯
π ARGUMENTS π
okay so here's the cast of characters, main character energy each and every one:
vqβ thestruct virtqueuewe're talking about. yes, this one. the queue in question πcmdβ command structure. the actual command, the moment, the reason we're all herereq_sizeβ size of the request bufferresp_sizeβ size of the response bufferkickβ whether to kick the virtqueue immediately π (that's the "optionally kick it" from the name, iykyk)
π¦ SEE ALSO π¦
- Kernel file
./drivers/scsi/virtio_scsi.c virtscsi_change_queue_depth(9)
ngl bestie, that's genuinely the entire page β no hidden options, no gotchas, no warnings. sometimes a girl just adds a command to a virtqueue and that's iconic π
and that's a wrap! π§ mwah π brought to you by the fine people at ./drivers/scsi, stamped October 2026, and yes the page name one more time for the cheap seats: virtscsi_add_cmd(9). 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