vb2_core_expbuf(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… vb2_core_expbuf(9): expbuf bestie πŸ’…

okay so you're on the Kernel API Manual page for vb2_core_expbuf, and bestie, this one is literally about exporting a buffer as a file descriptor. no cap, that's the whole vibe ✨


🌸 NAME 🌸

vb2_core_expbuf β€” Export a buffer as a file descriptor. πŸ’–

✨ SYNOPSIS ✨

int vb2_core_expbuf (struct vb2_queue *q , int *fd , unsigned int type ,
       struct vb2_buffer *vb , unsigned int plane , unsigned int flags );

πŸŽ€ ARGUMENTS πŸŽ€

  • q β€” pointer to struct vb2_queue with videobuf2 queue. πŸ‘‘
  • fd β€” pointer to the file descriptor associated with DMABUF (set by driver). 🫢
  • type β€” buffer type.
  • vb β€” pointer to struct vb2_buffer.
  • plane β€” index of the plane to be exported, 0 for single plane queues.
  • flags β€” file flags for newly created file, as defined at include/uapi/asm-generic/fcntl.h. Currently, the only used flag is O_CLOEXEC. is supported, refer to manual of open syscall for more details.

πŸ¦‹ DESCRIPTION πŸ¦‹

Videobuf2 core helper to implement VIDIOC_EXPBUF operation. It is called internally by VB2 by an API-specific handler, like videobuf2-v4l2.h. πŸ’–

🌈 RETURN 🌈

returns zero on success; an error code otherwise. ⭐

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./include/media/videobuf2-core.h plus the whole friend group:


made with πŸ’– in the ./include/media source/version corner, dated October 2026, for vb2_core_expbuf(9) β€” mwah! πŸ«ΆπŸ’…

πŸ“¦ where this page comes from