scsi_add_host_with_dma(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” a struct device of type scsi class, iykyk
  • dma_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: 0 on success / != 0 for 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:


🌸 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