STRUCT BDISP_M2M_DEVICE(9)
π NAME π
ok so this page is struct bdisp_m2m_device β it's the v4l2 memory-to-memory device data, bestie. that's the whole vibe. it's the little struct that holds all the m2m goodness together π
(also hi, this is a section 9 Kernel API Manual page, so like. kernel devs only. no cap.)
β¨ SYNOPSIS β¨
struct bdisp_m2m_device {
struct video_device *vdev;
struct v4l2_m2m_dev *m2m_dev;
struct bdisp_ctx *ctx;
int refcnt;
};
like, that's it. four fields. short and iconic. it's giving "small struct, big responsibilities" π
πΈ MEMBERS πΈ
okay let's go through each one because every single field matters, no skipping π
vdevβ the video device node for v4l2 m2m mode. this is the actual thing userspace talks to, babe. the device node. the main character π₯m2m_devβ the v4l2 m2m device data. separate thing fromvdev!! don't mix them up!! this one is the m2m machinery underneath π«Άctxβ hardware context data. the hardware-side brain of the operation, lowkey essential πrefcntβ the reference counter. it counts references. that's the whole job. keeping track so nothing gets freed while somebody's still using it, iykyk π
ngl, refcnt is the one you do not want to mess up. reference counting bugs are the worst kind of cursed π
π¦ SEE ALSO π¦
go read these next, they're all in the kernel file ./drivers/media/platform/st/sti/bdisp/bdisp.h β literally all of them live there together, cute little family π
struct bdisp_fmt(9)struct bdisp_frame(9)struct bdisp_request(9)struct bdisp_ctx(9)struct bdisp_dbg(9)struct bdisp_dev(9)
okay that's the whole page, hope this helped bestie π
sign-off time: this one comes from ./drivers/media/platform/st/st... and the date on it is October 2026, so like, it's from the future or something π¦β¨ 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