STRUCT BDISP_DEV(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct bdisp_dev(9) ✨

okay bestie, welcome to the Kernel API Manual πŸ’– this one's all about struct bdisp_dev β€” the whole vibe of it is literally just abstraction for bdisp entity, no cap. that's the NAME section, we ate it up, moving on 🫢


🌸 SYNOPSIS 🌸

here's the whole struct, character for character, do NOT touch it, she's perfect:

struct bdisp_dev {
    struct v4l2_device      v4l2_dev;
    struct video_device     vdev;
    struct platform_device  *pdev;
    struct device           *dev;
    spinlock_t slock;
    struct mutex            lock;
    u16 id;
    struct bdisp_m2m_device m2m;
    unsigned long           state;
    struct clk              *clock;
    void __iomem            *regs;
    wait_queue_head_t irq_queue;
    struct workqueue_struct *work_queue;
    struct delayed_work     timeout_work;
    struct bdisp_dbg        dbg;
};

like, look at her. main character struct energy fr fr πŸ‘‘


πŸ’… Members πŸ’…

every single one, in order, no skips, we don't do that here:

  • v4l2_dev β€” the v4l2 device πŸ’œ
  • vdev β€” the video device πŸŽ€
  • pdev β€” the platform device 🌸
  • dev β€” the device πŸ¦‹
  • slock β€” a spinlock whose whole job is protecting this data structure πŸ”₯
  • lock β€” a mutex, also protecting this data structure (yes, both. two protectors. iconique) ✨
  • id β€” the device index πŸ”’
  • m2m β€” memory-to-memory V4L2 device information 🌈
  • state β€” flags used to synchronize m2m and capture mode operation ⭐
  • clock β€” the IP clock ⏰
  • regs β€” the registers πŸ—‚οΈ
  • irq_queue β€” the interrupt handler waitqueue 😴
  • work_queue β€” workqueue used to handle timeouts ⏳
  • timeout_work β€” the IRQ timeout structure πŸ’€
  • dbg β€” debug info πŸ”

πŸ‘€ SEE ALSO πŸ‘€

go read the kernel file ./drivers/media/platform/st/sti/bdisp/bdisp.h (that's where this beauty lives) and then go hang out with her friends:

  • struct bdisp_fmt(9)
  • struct bdisp_frame(9)
  • struct bdisp_request(9)
  • struct bdisp_ctx(9)
  • struct bdisp_m2m_device(9)
  • struct bdisp_dbg(9)

iykyk 🧚


ok that's the whole page, nothing skipped, nothing invented, we kept every flag and every field exactly as written πŸ’–

so this little love letter came out of ./drivers/media/platform/st/st... and it's dated October 2026 β€” yeah, the future. she's ahead of her time. periodt πŸ“πŸ‘‘

πŸ“¦ where this page comes from