irdma_find_pd_index_limit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

irdma_find_pd_index_limit β€” bestie, this one finds your page descriptor index limit ✨

Oh and hey, quick vibe check before we dive in: this is a page from the Kernel API Manual, section 9 of the manual pages (the kernel-API girlies, iykyk). Just so you know where you're standing πŸŽ€


🌸 SYNOPSIS 🌸

void irdma_find_pd_index_limit (struct irdma_hmc_info *hmc_info , u32
type , u32 idx , u32 cnt , u32 *pd_idx , u32 *pd_limit );

That's the whole signature, no cap β€” returns void, takes six arguments, and it's literally copied exactly so don't come for me πŸ’…


🫢 ARGUMENTS 🫢

Okay so here's the cast of characters, and every single one of them matters:

  • hmc_info β€” pointer to the HMC configuration information struct. It's giving "the master doc", the glow-up source of truth, the struct we're all here for πŸ‘‘
  • type β€” the HMC resource type we're examining. Bestie, this is the what are we even looking at argument.
  • idx β€” starting index for the object. Where the story begins ✨
  • cnt β€” number of objects we're trying to create. How many we're pulling up to the party πŸŽ‰
  • pd_idx β€” pointer to return the page descriptor index. This one's an output β€” it gets written back to, so keep it valid, fr fr πŸ™ˆ
  • pd_limit β€” pointer to return the page descriptor index limit. Also an output, also needs to be a real pointer, also slays πŸ’–
Both pd_idx and pd_limit are pointers the function returns values through β€” so don't hand it garbage, okay? 😭

πŸ¦‹ DESCRIPTION πŸ¦‹

So what does it actually do? It calculates the page descriptor index and index limit for the resource defined by irdma_hmc_rsrc_type. That's it, that's the whole thing β€” it does the math and hands you back two numbers through pd_idx and pd_limit. Lowkey iconic of it, honestly ⭐


⭐ SEE ALSO ⭐

The kernel file it lives in, for anyone who wants to go read the source like the main character they are:

  • ./drivers/infiniband/hw/irdma/hmc.c

And the whole friend group β€” no gatekeeping here, here's every single one of them:


🧚 SIGN-OFF 🧚

That's the whole page, bestie, you ate that πŸ“ It ships out of ./drivers/infiniband/hw/irdma, dated October 2026, and it goes by irdma_find_pd_index_limit(9) β€” remember the name πŸ’œ

Later, love you, bye! πŸŒˆπŸ’–

πŸ“¦ where this page comes from