dprc_get_obj_count(9)
π dprc_get_obj_count π
okay so bestie, welcome to the dprc_get_obj_count page of the Kernel API Manual β yes it's a section 9 manpage, yes it's a kernel function, no you don't have to be scared of it π«Ά it's literally just a little counter-upper and i'm gonna walk you through it, periodt.
β¨ NAME β¨
dprc_get_obj_count β obtains the number of objects in the DPRC πΈ
like... it counts the objects. in the DPRC. that's the whole vibe. no cap.
π SYNOPSIS π
int dprc_get_obj_count (struct fsl_mc_io *mc_io , u32 cmd_flags , u16
token , int *obj_count );
it returns an int, it takes four things, and yes the spacing in the original is a little chaotic but we respect it π
π¦ ARGUMENTS π¦
mc_ioβ pointer to the MC portal's I/O object, iykyk π this is the one that knows where the portal lives.cmd_flagsβ command flags, and it's one or more of'MC_CMD_FLAG_'β note the trailing underscore, it's a prefix thing, don't come for me πtokenβ the token of the DPRC object, au16, and yes honey you need it, it's the β¨ identity β¨obj_countβ number of objects assigned to the DPRC β this is where the answer goes, it's anint *so it's writing back into your variable, main character energy honestly π
π₯ RETURN π₯
bestie... the original page has nothing under RETURN π like it just says "RETURN" and then moves on to SEE ALSO. no description, no error codes, not a single crumb. so i'm not gonna invent one for you β if you need the return semantics, go look at the docs, because the manpage is giving silent treatment π
ngl this is the one part where i refuse to make stuff up. no invented return values, no guessed error codes. we stay accurate in this house π«Ά
π SEE ALSO π
the kernel file lives at ./drivers/bus/fsl-mc/dprc.c β that's the source of truth, go read her π§
and here's the whole friend group, all the sibling functions in the family chat:
dprc_open(9)dprc_close(9)dprc_reset_container(9)dprc_set_irq(9)dprc_set_irq_enable(9)dprc_set_irq_mask(9)dprc_get_irq_status(9)dprc_clear_irq_status(9)dprc_get_attributes(9)dprc_get_obj(9)dprc_set_obj_irq(9)dprc_get_obj_region(9)dprc_get_api_version(9)dprc_get_container_id(9)dprc_get_connection(9)
like that's the whole squad, they all pull up together π
and that's the page!! π this little cutie ships out of ./drivers/bus/fsl-mc and the version/date on the tin is October 2026 β so yeah, mark your calendar, bestie, we're counting objects in the future ποΈβ¨ slay, 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