v4l2_async_...ubdev_sensor(9)
β¨ v4l2_async_...ubdev_sensor(9) β¨
okay so bestie, welcome to the Kernel API Manual β this one lives in the kernel-media corner of the universe and it's literally the sensor-registration glow-up you've been waiting for π
πΈ NAME πΈ
v4l2_async_register_subdev_sensor β registers a sensor sub-device to the asynchronous sub-device framework and parse set up common sensor related devices π
π¦ SYNOPSIS π¦
v4l2_async_register_subdev_sensor (sd );
π ARGUMENTS π
sdβ pointer tostruct v4l2_subdevπ«Ά (yes, that's it, that's the whole argument list, she's low maintenance)
π₯ DESCRIPTION π₯
So this function is just like v4l2_async_register_subdev β like, same energy, same vibe β with the exception that calling it will also parse firmware interfaces for remote references using v4l2_async_nf_parse_fwnode_sensor and registers the async sub-devices. Iconic, honestly. She does the extra credit β¨
And the sub-device is similarly unregistered by calling v4l2_async_unregister_subdev β so what goes in must come out, no cap. π
While registered, the subdev module is marked as in-use. π
β οΈ An error is returned if the module is no longer loaded on any attempts to register it. So like... if the module dipped, you're not getting a registration out of it, fr fr. π
π SEE ALSO π
Kernel file ./include/media/v4l2-async.h and honestly the whole friend group:
enum v4l2_async_match_type(9)struct v4l2_async_match_desc(9)struct v4l2_async_connection(9)struct v4l2_async_notifier_operations(9)struct v4l2_async_notifier(9)struct v4l2_async_subdev_endpoint(9)v4l2_async_debug_init(9)v4l2_async_nf_init(9)v4l2_async_subdev_nf_init(9)v4l2_async_nf_add_fwnode(9)v4l2_async_nf_add_fwnode_remote(9)v4l2_async_nf_add_i2c(9)v4l2_async_subdev_endpoint_add(9)v4l2_async_connection_unique(9)v4l2_async_nf_register(9)v4l2_async_nf_unregister(9)v4l2_async_nf_cleanup(9)v4l2_async_register_subdev(9)v4l2_async_unregister_subdev(9)
and that's the whole page, bestie π this gem is brought to you by ./include/media, dated October 2026, and it answers to the name v4l2_async_...ubdev_sensor(9) π¦ β go forth and register those sensors, iykyk π
π¦ 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