dpaa2_io_query_bp_count(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dpaa2_io_query_bp_count(9) β€” kernel API manual, bestie edition πŸŽ€

okay so this is a section 9 kernel API page (yes, the "9" in the header is the manual section, slay) and it's literally just about peeking at a buffer pool's population. tiny page, big main-character energy. let's go ✨


🌸 NAME 🌸

dpaa2_io_query_bp_count β€” ask a buffer pool how many buffers it's currently holding, no cap πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

int dpaa2_io_query_bp_count (struct dpaa2_io *d , u16 bpid , u32 *num );

so like… that's the whole vibe. three args, one int coming back at you 🫢


✨ ARGUMENTS ✨

  • d β€” the given DPIO object. your DPIO bestie that's gonna do the actual asking πŸ’…
  • bpid β€” the index of the buffer pool you wanna query. like, which pool, girlies πŸŽ€
  • num β€” the queried number of buffers in the buffer pool. this is where the answer lands πŸ‘‘

🌈 DESCRIPTION 🌈

the deal is simple: it returns 0 for a successful query, and a negative error code if the query fails. that's it. that's the whole function. short and iconic πŸ’€βœ¨

ngl bestie, always check that return value β€” 0 means you ate, negative means something went sideways and num isn't gonna be your answer 😭

πŸ’œ SEE ALSO πŸ’œ

kernel file ./drivers/soc/fsl/dpio/dpio-service.c β€” the source, go read it iykyk πŸ“–

and like, the whole friend group 🫢:


that's the whole page, bestie β€” short, sweet, and it ate πŸ’…

sign-off szn: this lil drop lives in ./drivers/soc/fsl/dpio, dated October 2026. go forth and query those buffer pools πŸ¦‹πŸ’– periodt.
πŸ“¦ where this page comes from