sdma_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sdma_init(9) β€” Kernel API Manual

okay so bestie, welcome to sdma_init(9), straight out of the Kernel API Manual ✨ this is the little function that gets called when a device gets probed, and trust me, it's doing more than it looks like πŸ‘‘


🌸 NAME

sdma_init β€” called when device probed 🫢


⭐ SYNOPSIS

int sdma_init (struct hfi1_devdata *dd , u8 port );

like, that's the whole signature, no cap πŸ’…


πŸŽ€ ARGUMENTS

  • dd β€” an hfi1_devdata, iykyk πŸ¦‹
  • port β€” the port number, and rn it's currently only zero (yes, really, just zero, that's the whole vibe πŸ™ˆ)

✨ DESCRIPTION

So what does it actually do? It initializes each sde and its csrs πŸ’– that's it, that's the job, and it slays at it.

Also key detail: interrupts are not required to be enabled for this to work β€” so you don't have to have your interrupt situation figured out first, it's giving low-maintenance icon behavior 🌈


πŸ”₯ RETURN

  • 0 β€” success, we ate πŸ‘‘
  • -errno β€” failure, and it hands you back the negative errno so you know what went wrong 😭

πŸ¦‹ SEE ALSO

the kernel file lives at ./drivers/infiniband/hw/hfi1/sdma.c πŸ“ and honestly the whole sdma friend group shows up here:

like, the whole squad fr fr πŸ’œ


ngl if you're reading this at 3am while debugging a probe path, you're doing amazing, drink some water πŸ“

and that's the tea bestie 🧚 this lil page came from ./drivers/infiniband/hw/hfi1, dated October 2026 β€” mwah, periodt πŸ’…πŸ’–

πŸ“¦ where this page comes from