STRUCT VIMC_ENT_DEVICE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 to struct media_entity for 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 when is_media_entity_v4l2_video_device(ent) returns true.

🌈 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:


πŸ’– 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