ENUM VFL_DEVNODE_DIRECTION(9)
π enum vfl_devnode_direction(9) β bestie edition π
okay so this is a page from the Kernel API Manual, and it's about one little enum that answers the question every V4L2 device has to answer at some point: am I the one sending, the one receiving, or the one doing both sides at once? iconic behavior honestly π
β¨ NAME β¨
enum vfl_devnode_direction β literally just tells you whether a &struct video_device is a receiver, a transmitter, or a mem-to-mem device. that's it. that's the whole vibe check π¦
πΈ SYNOPSIS πΈ
enum vfl_devnode_direction {
VFL_DIR_RX ,
VFL_DIR_TX ,
VFL_DIR_M2M
};
three constants, no cap, no extras π
π Constants π
VFL_DIR_RXβ this device is a receiver. it's giving "i listen, i take in" energy πβ¨VFL_DIR_TXβ this device is a transmitter. main character energy, it puts stuff out into the world π‘π₯VFL_DIR_M2Mβ this is a memory to memory device. no outside world involved, it just does its little transformation internally, obsessed π§
β Note β
π¨ heads up bestie: this whole thing gets ignored ifenum vfl_devnode_typeisVFL_TYPE_SUBDEV. like, don't even worry about it in that case. periodt π
π SEE ALSO π
so many besties linked here, we love a connected ecosystem π«Ά β and it all lives in the kernel file ./include/media/v4l2-dev.h:
enum vfl_devnode_type(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_max(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)
and that's the whole page, bestie, go read your kernel headers π
this cutie lives over in ./include/media, dated October 2026, and it's page enum vfl_devnode_direction(9) of the Kernel API Manual β mwah, see u in the group chat ππ
π¦ 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