dpaa2_io_query_bp_count(9)
π 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 β0means you ate, negative means something went sideways andnumisn'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 π«Ά:
dpaa2_io_service_select(9)dpaa2_io_create(9)dpaa2_io_down(9)dpaa2_io_irq(9)dpaa2_io_get_cpu(9)dpaa2_io_service_register(9)dpaa2_io_service_deregister(9)dpaa2_io_service_rearm(9)dpaa2_io_service_pull_fq(9)dpaa2_io_service_pull_channel(9)dpaa2_io_service_enqueue_fq(9)dpaa2_io_service_enqueue_multiple_fq(9)dpaa2_io_service_enqueue_multiple_desc_fq(9)dpaa2_io_service_enqueue_qd(9)dpaa2_io_service_release(9)dpaa2_io_service_acquire(9)dpaa2_io_store_create(9)dpaa2_io_store_destroy(9)dpaa2_io_store_next(9)dpaa2_io_query_fq_count(9)dpaa2_io_set_irq_coalescing(9)dpaa2_io_get_irq_coalescing(9)dpaa2_io_set_adaptive_coalescing(9)dpaa2_io_get_adaptive_coalescing(9)dpaa2_io_update_net_dim(9)
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
- 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