STRUCT VIMC_ENT_TYPE(9)
π struct vimc_ent_type(9) π
okay bestie, welcome to the Kernel API Manual page for struct vimc_ent_type β yes it's a lowercase struct name, yes it's giving "I live in a header file," and honestly? iconic. π
β¨ NAME β¨
struct vimc_ent_type β no description line, no tagline, nothing. The original literally just leaves it blank after the dash. So this struct is out here with main character energy and no backstory. mysterious. we respect it. π¦
πΈ SYNOPSIS πΈ
here's the whole shape of it, no notes, exactly as it is:
struct vimc_ent_type {
struct vimc_ent_device *(*add)(struct vimc_device *vimc, const char
*vcfg_name);
void (*unregister)(struct vimc_ent_device *ved);
void (*release)(struct vimc_ent_device *ved);
};
three function pointers. that's it. that's the vibe. ngl it's lowkey elegant. β¨
π«Ά Members π«Ά
addβ this one initializes and registers the vimc entity, and it gets called fromvimc-core. it's the glow-up phase. β¨unregisterβ this unregisters the vimc entity, also called fromvimc-core. the exit is as important as the entrance, periodt. πreleaseβ this one releases the vimc entity, and it's called from thev4l2_devrelease callback. last one out, turn off the lights. π
π₯ SEE ALSO π₯
the kernel file to go look at, for real for real:
Kernel file ./drivers/media/test-drivers/vimc/vimc-common.h
and the whole friend group, all of these are also man pages so go read them when you're done here:
vimc_colorimetry_clamp(9)struct vimc_pix_map(9)struct vimc_ent_device(9)struct vimc_device(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)
ok that's the whole page bestie, you ate that π go forth and register your entities responsibly π§
and the cute little sign-off: this one lives in ./drivers/media/test-drivers/vimc, dated October 2026, and it's page struct vimc_ent_type(9) of the Kernel API Manual. 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