vb2_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so this is vb2_write, straight from the Kernel API Manual, and it implements write() syscall logic. that's the whole name section, periodt πŸ’…


🌸 SYNOPSIS 🌸

no cap, here's the signature exact:

ssize_t vb2_write (struct vb2_queue *q , const char __user *data ,
       size_t count , loff_t *ppos , int nonblock );

✨ ARGUMENTS ✨

  • q β€” pointer to struct vb2_queue with videobuf2 queue. the queue is lowkey the main character here πŸ‘‘
  • data β€” pointed to target userspace buffer. that's the wording, bestie 🫢
  • count β€” number of bytes to write. literally the byte count πŸ’…
  • ppos β€” file handle position tracking pointer. it's tracking the position, iykyk πŸ“
  • nonblock β€” mode selector (1 means blocking calls, 0 means nonblocking). yes, that mapping is what the page says β€” don't come for me πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file: ./include/media/videobuf2-core.h β€” and then the whole cross-ref squad, all present and accounted for:


okay that's the page, bestie! source/version is ./include/media, dated October 2026, signing off from your vb2_write(9) bestie πŸ’‹ slay responsibly

πŸ“¦ where this page comes from