irdma_find_pd_index_limit(9)
π 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 π
Bothpd_idxandpd_limitare 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:
irdma_find_sd_index_limit(9)irdma_set_sd_entry(9)irdma_clr_sd_entry(9)irdma_invalidate_pf_hmc_pd(9)irdma_hmc_sd_one(9)irdma_hmc_sd_grp(9)irdma_hmc_finish_add_sd_reg(9)irdma_sc_create_hmc_obj(9)irdma_finish_del_sd_reg(9)irdma_sc_del_hmc_obj(9)irdma_add_sd_table_entry(9)irdma_add_pd_table_entry(9)irdma_remove_pd_bp(9)irdma_prep_remove_sd_bp(9)irdma_prep_remove_pd_page(9)
π§ 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms