STRUCT DT3155_PRIV(9)
π struct dt3155_priv(9) π
okay bestie, welcome to the Kernel API Manual β¨ we're looking at struct dt3155_priv today and honestly? it's giving "private data structure" and it's giving main character energy. this is the lil' bundle of state that the dt3155 driver keeps all to itself, no cap π«Ά
πΈ SYNOPSIS πΈ
like, here's the whole vibe, literally every member, character for character:
struct dt3155_priv {
struct v4l2_device v4l2_dev;
struct video_device vdev;
struct pci_dev *pdev;
struct vb2_queue vidq;
struct vb2_v4l2_buffer *curr_buf;
struct mutex mux;
struct list_head dmaq;
spinlock_t lock;
v4l2_std_id std;
unsigned width, height;
unsigned input;
unsigned int sequence;
void __iomem *regs;
u8 csr2, config;
};
π Members π
bestie, let's do a member-by-member vibe check, one at a time, no skipping π
v4l2_devβ thev4l2_devicestructure, iconic, essential, we love her πvdevβ thevideo_devicestructure, also doing her thing β¨pdevβ pointer to thepci_devstructure, i.e. the PCI side of the relationship π«Άvidqβ thevb2_queuestructure, holding the queue agenda fr frcurr_bufβ pointer to the curren buffer π (yes, "curren", that's what the page says, we're keeping it exactly, don't come for me π)muxβ mutex to protect the instance, so nobody's out here playing tug-of-war with our data πdmaqβ queue for dma buffers, keeping them lined up all neat and tidy πlockβ spinlock for dma queue, the fast-and-furious guardian ofdmaqπ₯stdβ input standard, like, which standard are we even on bestie πΊwidthβ frame width, the horizontal slay πheightβ frame height, the vertical slay πinputβ current input, as in which one we're on right now ποΈsequenceβ frame counter, keeping track of every single frame, one by one πregsβ local copy of mmio base register, our very own saved copy π§csr2β local copy of csr2 register, also saved, also precious πconfigβ local copy of config register, the third member of the local-copy trio π
lowkey important reminder:regs,csr2andconfigare all local copies of their registers β that's the whole point of them, don't forget it π
π¦ SEE ALSO π¦
go look at the kernel file ./drivers/media/pci/dt3155/dt3155.h β that's where all the real lore lives, iykyk β
and that's the whole page bestie, you ate that π this was the ./drivers/media/pci/dt3155 source, version vibes stamped October 2026 β signed, sealed, slayed, periodt π
β¨
π¦ 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