STRUCT VIMC_ENT_DEVICE(9)
struct vimc_ent_device(9) π¦
okay bestie, welcome to the Kernel API Manual page for struct vimc_ent_device(9) β this is literally the core struct that represents an entity in the topology. main character energy fr fr. π
π NAME π
struct vimc_ent_device β the core struct that represents an entity in the topology. that's it, that's the vibe. β¨
πΈ SYNOPSIS πΈ
okay, here's the exact shape β do not edit, do not paraphrase, bestie:
struct vimc_ent_device {
struct device *dev;
struct media_entity *ent;
void * (*process_frame)(struct vimc_ent_device *ved, const void
*frame);
void (*vdev_get_format)(struct vimc_ent_device *ved, struct
v4l2_pix_format *fmt);
};
π Members π
devβ a pointer of the device struct of the driver.entβ the pointer tostruct media_entityfor the node.process_frameβ callback that sends a frame to that node.vdev_get_formatβ callback that returns the current format a pad, used only whenis_media_entity_v4l2_video_device(ent)returnstrue.
π Description π
Every node of the topology has to create a vimc_ent_device struct β no skipping, bestie. Depending on the node, it will be an instance of v4l2_subdev or video_device struct where both contains a struct media_entity. Those structures should embed the vimc_ent_device struct through v4l2_set_subdevdata and video_set_drvdata respectively, allowing the vimc_ent_device struct to be retrieved from the corresponding struct media_entity. iykyk π«Ά
π₯ SEE ALSO π₯
go give these a look, bestie:
- Kernel file
./drivers/media/test-drivers/vimc/vimc-common.h vimc_colorimetry_clamp(9)struct vimc_pix_map(9)struct vimc_device(9)struct vimc_ent_type(9)struct vimc_ent_config(9)vimc_is_source(9)vimc_pix_map_by_index(9)vimc_mbus_code_by_index(9)vimc_pix_map_by_code(9)vimc_pix_map_by_pixelformat(9)vimc_ent_sd_register(9)vimc_vdev_link_validate(9)
π source/version: ./drivers/media/test-drivers/vimc Β· date: October 2026. that's the whole page, bestie β go build that topology and slay π
β¨
π¦ 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