STRUCT VB2_VMAREA_HANDLER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct vb2_vmarea_handler(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual, section 9 β€” this page is literally all about struct vb2_vmarea_handler, and no cap it's the common vma refcount tracking handler. it's giving β€œsmall struct, big refcount energy” ✨


✨ NAME ✨

struct vb2_vmarea_handler β€” common vma refcount tracking handler. periodt πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

struct vb2_vmarea_handler {
    refcount_t *refcount;
    void (*put)(void *arg);
    void *arg;
 };

πŸŽ€ Members πŸŽ€

  • refcount β€” a pointer to the refcount_t entry in the buffer. that's the counter being tracked, iykyk πŸ‘‘
  • put β€” callback to the function that decreases the buffer refcount. yes bestie, it's the β€œput it back down” function 🫢
  • arg β€” the argument for the put callback. it gets passed along, fr fr πŸ’œ

🌈 SEE ALSO 🌈

  • Kernel file ./include/media/videobuf2-memops.h β€” that's the kernel file, go peek πŸ‘€

mwah πŸ’‹ this page comes from ./include/media, dated October 2026, and it's for struct vb2_vmarea_handler(9) β€” slay, bye πŸ’–

πŸ“¦ where this page comes from