vsp1_dl_body_pool_create(9)
π vsp1_dl_body_pool_create(9) π
okay so bestie, welcome to the Kernel API Manual β yes we're in kernel-land today and honestly? it slaps. this page is about vsp1_dl_body_pool_create, and no I will not be pronouncing all those underscores out loud, but I will explain it beautifully. π«Ά
β¨ NAME β¨
vsp1_dl_body_pool_create β create a pool of bodies from a single allocation. literally one allocation, many bodies. it's giving efficiency icon behavior. π
πΈ SYNOPSIS πΈ
struct vsp1_dl_body_pool * vsp1_dl_body_pool_create (struct vsp1_device
*vsp1 , unsigned int num_bodies , unsigned int num_entries , size_t
extra_size );
like yes the args got line-wrapped, that's just how the doc came, we don't fix what isn't broken π
π ARGUMENTS π
vsp1β the VSP1 device. the main character of this whole situation, ngl.num_bodiesβ how many bodies we're allocating. that's the count, bestie, set it right.num_entriesβ the maximum number of entries that a body can contain. max! not "somewhere around", not "vibes-based" β the max. πextra_sizeβ extra allocation provided for the bodies. yes it's extra. yes it's on purpose. slay.
π¦ DESCRIPTION π¦
So what are we actually doing? We allocate a pool of display list bodies, and each one has enough memory to hold the requested number of entries plus extra_size. one allocation, all the bodies, chef's kiss. π₯
On success you get back a pointer to a pool. On failure β and this is the part where you go π β it returns NULL if memory can't be allocated. no cap, that's the whole deal: NULL means go check your memory situation.
β SEE ALSO β
buckle up bestie, this list is long and it ate:
- Kernel file
./drivers/media/platform/renesas/vsp1/vsp1_dl.c struct vsp1_dl_ext_header(9)struct vsp1_pre_ext_dl_body(9)struct vsp1_dl_body(9)struct vsp1_dl_body_pool(9)struct vsp1_dl_cmd_pool(9)struct vsp1_dl_list(9)struct vsp1_dl_manager(9)vsp1_dl_body_pool_destroy(9)vsp1_dl_body_get(9)vsp1_dl_body_put(9)vsp1_dl_body_write(9)vsp1_dl_cmd_pool_create(9)vsp1_dl_list_get(9)vsp1_dl_list_put(9)vsp1_dl_list_get_body0(9)vsp1_dl_list_add_body(9)vsp1_dl_list_add_chain(9)vsp1_dlm_irq_frame_end(9)
that's all nineteen of them, every single one, and yes I counted. iykyk. π§
quick vibe check: this page came from./drivers/media/platform/renes...and it's dated October 2026 β future-coded of it, honestly β and it's filed undervsp1_dl_body_pool_create(9)in the Kernel API Manual. goodbye bestie, go allocate responsibly ππ
π¦ 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