dvb_vb2_fill_buffer(9)
π
dvb_vb2_fill_buffer (9) β Kernel API Manual, bestie edition π
okay so this is a page straight out of the Kernel API Manual, and today's main character is dvb_vb2_fill_buffer(9). it's a lil function that, like... fills a VB2 buffer. that's the whole vibe. let's get into it β¨
πΈ NAME πΈ
dvb_vb2_fill_buffer β fills a VB2 buffer π«Ά
β¨ SYNOPSIS β¨
int dvb_vb2_fill_buffer (struct dvb_vb2_ctx *ctx , const unsigned char
*src , int len , enum dmx_buffer_flags *buffer_flags , bool flush );
so it returns an int, and it takes five whole arguments. she's thorough. we respect that π
π₯ ARGUMENTS π₯
ctxβ the control struct for the VB2 handler. like, the whole operation's home base πsrcβ the place where the data is stored. this is where we're copying from, bestie πlenβ number of bytes to be copied fromsrc. yes, the byte count, we love a specific number π’buffer_flagsβ pointer to buffer flags as defined byenum dmx_buffer_flags. and listen β this one can beNULL. no cap, it's allowed πflushβ flush the buffer, even if it isn't full. like, she doesn't have to be at capacity to get emptied, okay?? π
π SEE ALSO π
the kernel file ./include/media/dvb_vb2.h, plus this whole gorgeous little family of friends:
enum dvb_buf_type(9)enum dvb_vb2_states(9)struct dvb_buffer(9)struct dvb_vb2_ctx(9)dvb_vb2_init(9)dvb_vb2_release(9)dvb_vb2_is_streaming(9)dvb_vb2_poll(9)dvb_vb2_stream_on(9)dvb_vb2_stream_off(9)dvb_vb2_reqbufs(9)dvb_vb2_querybuf(9)dvb_vb2_expbuf(9)dvb_vb2_qbuf(9)dvb_vb2_dqbuf(9)dvb_vb2_mmap(9)
that's the whole squad. iykyk π
lowkey reminder:buffer_flagsbeingNULL-able is genuinely fine, it's in the docs β don't panic π§
okay that's the page!! sign-off time π this one lives in ./include/media and it's dated October 2026, brought to you by the Kernel API Manual β periodt. slay, go fill some buffers, bestie ππ¦β
π¦ 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