dprc_get_obj_count(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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, a u16, 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 an int * 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:

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