STRUCT VSP1_ENTITY_OPERATIONS(9)
π struct vsp1_entity_operations(9) π
okay so this is from the Kernel API Manual, bestie, and it's literally the ops table for VSP1 entities β like the little handbook each entity hands to the framework so everyone knows what it can do. no cap, it's the whole personality of an entity in one struct. π«Ά
β¨ NAME β¨
struct vsp1_entity_operations β Entity operations. that's it, that's the vibe. π
π¦ SYNOPSIS π¦
struct vsp1_entity_operations {
void (*destroy)(struct vsp1_entity *entity);
void (*configure_stream)(struct vsp1_entity *entity, struct
v4l2_subdev_state *state, struct vsp1_pipeline *pipe, struct
vsp1_dl_list *dl, struct vsp1_dl_body *dlb);
void (*configure_frame)(struct vsp1_entity *entity, struct
vsp1_pipeline *pipe, struct vsp1_dl_list *dl, struct vsp1_dl_body *dlb);
void (*configure_partition)(struct vsp1_entity *entity, struct
vsp1_pipeline *pipe, const struct vsp1_partition *partition, struct
vsp1_dl_list *dl, struct vsp1_dl_body *dlb);
unsigned int (*max_width)(struct vsp1_entity *entity, struct
v4l2_subdev_state *state, struct vsp1_pipeline *pipe);
void (*partition)(struct vsp1_entity *entity, struct
v4l2_subdev_state *state, struct vsp1_pipeline *pipe, struct
vsp1_partition *partition, unsigned int index, struct v4l2_rect
*window);
};
like, six function pointers, all iconic, all doing their own little job. π
πΈ Members πΈ
destroyβ Destroy the entity. yes, it's giving cleanup era, we love a graceful exit. πconfigure_streamβ Setup the hardware parameters for the stream which do not vary between frames (pipeline, formats). β οΈ and bestie, listen: thevsp1_dl_listargument is only valid for display pipeline and will beNULLfor mem-to-mem pipelines. so don't go dereferencing it in mem-to-mem land, fr fr. πconfigure_frameβ Configure the runtime parameters for each frame. every single frame gets this treatment, no skipping. β¨configure_partitionβ Configure partition specific parameters. the partition girlies get their own special setup. π§max_widthβ Return the max supported width of data that the entity can process in a single operation. it's literally the width check, and it returns anunsigned int. πpartitionβ Process the partition construction based on this entity's configuration. it takes an index and a window (struct v4l2_rect *) and does the construction thing. π
π SEE ALSO π
Kernel file ./drivers/media/platform/renesas/vsp1/vsp1_entity.h β go read it, iykyk. π
aaaand that's the whole page, bestie! π this was pulled from ./drivers/media/platform/renes... (the version string got its little nails done and got cut off, love that for it), dated October 2026, and it's filed under struct vsp1...y_operations(9). slay, go forth and configure your entities. π
β¨π₯
π¦ 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