irdma_obj_aligned_mem(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– irdma_obj_aligned_mem(9) πŸ’–

okay so bestie, welcome to the irdma_obj_aligned_mem page from the Kernel API Manual β€” yes this is a section 9 girlie and she is very niche but honestly kind of iconic. Let's get into it πŸŽ€


✨ NAME ✨

irdma_obj_aligned_mem β€” get aligned memory from device allocated memory 🫢


✨ SYNOPSIS ✨

int irdma_obj_aligned_mem (struct irdma_pci_f *rf , struct irdma_dma_mem
*memptr , u32 size , u32 mask );

like, that's the whole vibe. one function. four arguments. no cap πŸ’…


✨ ARGUMENTS ✨

  • rf β€” this one is the RDMA PCI function 🌸
  • memptr β€” points to the memory addresses (it's a pointer to the pointer energy, iykyk) ✨
  • size β€” the size of memory you actually need, in all its u32 glory
  • mask β€” the mask for the aligned memory, which is doing the alignment work behind the scenes ⭐

✨ DESCRIPTION ✨

So what does she do? She gets you aligned memory of the requested size, and then she updates the memptr so it points to that new aligned memory. Literally her whole job. Main character energy πŸ”₯

And the return? Return 0 if it's successful, otherwise return the no-memory error 😭 (yes that's a real outcome, keep an eye out for it ngl).

not me needing to remind you: the memptr gets updated β€” it's pointing somewhere new after this call, so don't be surprised girlie πŸ™ˆ

✨ SEE ALSO ✨

the kernel file lives at ./drivers/infiniband/hw/irdma/hw.c πŸ‘‘

and here's the whole friend group, fr fr β€” every single one of them:


that's the page, bestie πŸ’œ this little gem lives in the source tree at ./drivers/infiniband/hw/irdma, it's dated October 2026, and it answers to the name irdma_obj_aligned_mem(9). mwah πŸ’‹βœ¨πŸ§š

πŸ“¦ where this page comes from