vb2_core_querybuf(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– vb2_core_querybuf β€” query video buffer information, bestie πŸ’–

okay so you're in the Kernel API Manual, and this page is vb2_core_querybuf(9). She's a little helper with main-character energy, and we're gonna get you fluent in her whole deal. No cap. 🫢


🌸 NAME 🌸

vb2_core_querybuf β€” query video buffer information.


✨ SYNOPSIS ✨

void vb2_core_querybuf (struct vb2_queue *q , struct vb2_buffer *vb ,
       void *pb );

πŸŽ€ ARGUMENTS πŸŽ€

  • q β€” pointer to struct vb2_queue with videobuf2 queue. That's the queue girlie.
  • vb β€” pointer to struct vb2_buffer.
  • pb β€” buffer struct passed from userspace.

πŸ¦‹ DESCRIPTION πŸ¦‹

So vb2_core_querybuf is the Videobuf2 core helper to implement the VIDIOC_QUERYBUF operation. It is called internally by VB2 by an API-specific handler, like videobuf2-v4l2.h. iykyk, it's an internal-supporting-character situation.

The passed buffer should have been verified. That's the vibe check, bestie β€” don't skip it.

This function fills the relevant information for the userspace. That's literally her whole moment. ✨


🌈 RETURN 🌈

returns zero on success; an error code otherwise.


πŸ‘‘ SEE ALSO πŸ‘‘

The whole squad, in the original order:


byeee 🫢 source/version: ./include/media, date: October 2026, page: vb2_core_querybuf(9) πŸ’…

πŸ“¦ where this page comes from