vb2_clear_la...fer_dequeued(9)
π vb2_clear_last_buffer_dequeued(9) β the "okay bestie, forget that last buffer" flag-clearing moment
okay so real talk: this is a page out of the Kernel API Manual (that's the manual name, iykyk), and it's genuinely tiny but it does exactly one job and does it with main character energy β¨ the page title got truncated by the man-page generator so it shows up as vb2_clear_la...fer_dequeued(9) β yes that's on purpose, no we're not fixing it π
πΈ NAME πΈ
vb2_clear_last_buffer_dequeued β clears the last-buffer-dequeued flag of a queue. that's it. that's the whole vibe. it doesn't stream, it doesn't allocate, it just resets a flag on your queue. periodt π
π¦ SYNOPSIS π¦
void vb2_clear_last_buffer_dequeued (struct vb2_queue *q );
note the void up front β nothing comes back to you, bestie, this function gives and gives and expects zero return π«Ά
π ARGUMENTS π
qβ pointer to astruct vb2_queuethat holds a videobuf2 queue. that's the one whose flag is getting cleared, so likeβ¦ make sure it's the right queue before you hand it over π
π SEE ALSO π
the whole extended friend group lives in the kernel file ./include/media/videobuf2-core.h, and honestly the crossover list is giving huge cast:
enum vb2_memory(9)struct vb2_mem_ops(9)struct vb2_plane(9)enum vb2_io_modes(9)enum vb2_buffer_state(9)struct vb2_buffer(9)struct vb2_ops(9)struct vb2_buf_ops(9)struct vb2_queue(9)vb2_queue_allows_cache_hints(9)vb2_plane_vaddr(9)vb2_plane_cookie(9)vb2_buffer_done(9)vb2_discard_done(9)vb2_wait_for_all_buffers(9)vb2_core_querybuf(9)vb2_core_reqbufs(9)vb2_core_create_bufs(9)vb2_core_prepare_buf(9)vb2_core_remove_bufs(9)vb2_core_qbuf(9)vb2_core_dqbuf(9)vb2_core_streamon(9)vb2_core_streamoff(9)vb2_core_expbuf(9)vb2_core_queue_init(9)vb2_core_queue_release(9)vb2_queue_error(9)vb2_mmap(9)vb2_get_unmapped_area(9)vb2_core_poll(9)vb2_read(9)vb2_write(9)vb2_thread_fnc(9)vb2_thread_start(9)vb2_thread_stop(9)vb2_is_streaming(9)vb2_fileio_is_active(9)vb2_get_num_buffers(9)vb2_is_busy(9)vb2_get_drv_priv(9)vb2_set_plane_payload(9)vb2_get_plane_payload(9)vb2_plane_size(9)vb2_start_streaming_called(9)vb2_get_buffer(9)vb2_buffer_in_use(9)vb2_verify_memory_type(9)vb2_request_object_is_buffer(9)vb2_request_buffer_cnt(9)
like every single one of them. no cap, that's the whole list, go read them if you're obsessed π₯
lowkey reminder: there's no DESCRIPTION section on this page. the NAME line is the description. sometimes a queen says it once and moves on π
and that's the page, bestie π this cutie came from ./include/media and is dated October 2026 β stan a strictly-clear-the-flag icon, she's literally doing one thing and doing it flawlessly πβ¨
π¦ 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