scsi_add_host_with_dma(9)
π scsi_add_host_with_dma(9)
okay bestie, so this one lives in the Kernel API Manual β yes, we're in kernel-land now, grab your iced coffee π§β because we're registering a SCSI host, but likeβ¦ with a DMA device attached. main character energy fr fr.
β¨ NAME β¨
scsi_add_host_with_dma β add a scsi host with dma device π¦
π SYNOPSIS π
int scsi_add_host_with_dma (struct Scsi_Host *shost , struct device *dev
, struct device *dma_dev );
πΈ ARGUMENTS πΈ
shostβ the scsi host pointer you're adding, like the whole point of the function πdevβ astruct deviceof type scsi class, iykykdma_devβ the dma device for the host, slay π₯
π NOTE π
ngl, you rarely need to worry about this one unless you're in virtualised host environments β so bestie, just use the simpler scsi_add_host function instead. it's giving "why are you doing the hard version" π
Return value:0on success /!= 0for error β (so if it's not zero, something went wrong, no cap)
π SEE ALSO π
Kernel file ./drivers/scsi/hosts.c β and the whole friend group:
scsi_host_set_state(9)scsi_remove_host(9)scsi_host_alloc(9)scsi_host_lookup(9)scsi_host_get(9)scsi_host_busy(9)scsi_host_put(9)scsi_queue_work(9)scsi_flush_work(9)scsi_host_complete_all_commands(9)scsi_host_busy_iter(9)
πΈ okay that's the whole page bestie, you ate that π«Ά this one's from ./drivers/scsi, dated October 2026 β periodt, go register your host π
β¨
π¦ 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