v4l2_prio_max(9)
π v4l2_prio_max β a Kernel API Manual moment (yes we're reading kernel docs, it's giving main character energy)
okay so bestie, we're deep in the kernel today and the page we're vibing with is v4l2_prio_max, from the Kernel API Manual. don't panic, it's a tiny one. like, one-function tiny. we love a low-effort icon. π
β¨ NAME β¨
v4l2_prio_max β returns the maximum priority, as stored at the @global array. that's it. that's the whole gig. π
πΈ SYNOPSIS πΈ
enum v4l2_priority v4l2_prio_max (struct v4l2_prio_state *global );
look at her go. return type enum v4l2_priority, one argument, no notes. β
π¦ ARGUMENTS π¦
globalβ a pointer to thestruct v4l2_prio_stateof the device node. that's the thing you hand over, that's the thing she reads. π«Ά
π DESCRIPTION π
so what does she actually do? she returns the maximum priority, as stored at that @global array. slay. short king. π
NOTE: this function should be used only by the V4L2 core. fr fr, that's not a suggestion β it's a "stay in your lane" notice, and the lane is the V4L2 core. don't be out here calling her from random places, okay? π
π SEE ALSO π
the whole friend group, no cap β and heads up, the kernel file is ./include/media/v4l2-dev.h, bestie:
enum vfl_devnode_type(9)enum vfl_devnode_direction(9)enum v4l2_video_device_flags(9)struct v4l2_prio_state(9)v4l2_prio_init(9)v4l2_prio_change(9)v4l2_prio_open(9)v4l2_prio_close(9)v4l2_prio_check(9)struct v4l2_file_operations(9)struct video_device(9)media_entity_to_video_device(9)to_video_device(9)__video_register_device(9)video_register_device(9)video_register_device_no_warn(9)video_unregister_device(9)video_device_alloc(9)video_device_release(9)video_device_release_empty(9)v4l2_disable_ioctl(9)video_get_drvdata(9)video_set_drvdata(9)video_devdata(9)video_drvdata(9)video_device_node_name(9)video_is_registered(9)v4l2_debugfs_root(9)video_device_pipeline_start(9)__video_device_pipeline_start(9)video_device_pipeline_stop(9)__video_device_pipeline_stop(9)video_device_pipeline_alloc_start(9)video_device_pipeline(9)
like, thirty-four entries. she's connected. iykyk. π₯
and that's the whole page, bestie, we ate and left no crumbs π β this lil masterclass lives over in ./include/media, it's dated October 2026, and it's part of the Kernel API Manual, filed under v4l2_prio_max(9). go forth and prioritize responsibly ππ§
π¦ 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