irdma_alloc_mr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… irdma_alloc_mr(9)

okay so bestie, welcome to another episode of the Linux kernel API manual β€” this one's irdma_alloc_mr, straight out of the Kernel API Manual, and it's literally the function that registers a stag for fast memory registration. it's giving "my memory but make it registered" energy ✨


🌸 NAME

irdma_alloc_mr β€” register stag for fast memory registration πŸŽ€


πŸ¦‹ SYNOPSIS

struct ib_mr * irdma_alloc_mr (struct ib_pd *pd , enum ib_mr_type
mr_type , u32 max_num_sg );

no cap, that's the whole signature. three args, one struct ib_mr * coming back at you 🫢


✨ ARGUMENTS

  • pd β€” the ibpd pointer πŸ’œ like, your protection domain, the whole vibe container for this memory region
  • mr_type β€” memory for stag registration ⭐ this is where you tell it what kind of stag situation we're doing
  • max_num_sg β€” max number of pages πŸ“„ the ceiling on how many pages you're bringing to this party

πŸ”₯ SEE ALSO

the kernel file lives at ./drivers/infiniband/hw/irdma/verbs.c and honestly it's the main character of this whole saga β€” go read it if you're nosy (iykyk) πŸ‘‘

and here's the entire friend group, nobody left behind, periodt:


bestie note: that list is LONG long. it's giving "linked list of doom" but every single one is a real page, so go off πŸ’€

okay that's the whole page, mwah πŸ’– this one came from ./drivers/infiniband/hw/irdma, dated October 2026, and it's filed under irdma_alloc_mr(9) β€” slay, go register some stag, you absolute icon πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from