v4l2_device_call_until_err(9)
π NAME π
okay bestie, welcome to the Kernel API Manual β¨ β this page is serving v4l2_device_call_until_err(9), and she is here to call the specified operation for all subdevs matching the &v4l2_subdev.grp_id, as assigned by the bridge driver, until an error occurs. periodt π
β¨ SYNOPSIS β¨
v4l2_device_call_until_err (v4l2_dev , grpid , o , f , args... );
π ARGUMENTS π
v4l2_devβ thestruct v4l2_devicethat owns the sub-devices you're iterating over. she's the main character holding the whole list πgrpidβ thestruct v4l2_subdev->grp_idgroup ID to match. use0to match them all β yes, all of them, no cap π«Άoβ name of the element atstruct v4l2_subdev_opsthat containsf. each element there groups a set of operations functions, like little operation friend groups πΈfβ operation function that will be called ifcondmatches. the operation functions are defined in groups, according to each element atstruct v4l2_subdev_opsβ¨argsβ arguments forf. that's it, that's the args π
π¦ DESCRIPTION π¦
the way this works: if the operation returns an error other than 0 or -ENOIOCTLCMD for any subdevice, then abort and return with that error code, zero otherwise. so she's a little perfectionist β one real error and she's out ππ
π NOTE π
bestie, subdevs cannot be added or deleted while walking the subdevs list. that's the rule, okay? don't be out here changing the list mid-walk β it's giving chaos ππ
π SEE ALSO π
- Kernel file
./include/media/v4l2-device.h struct v4l2_device(9)v4l2_device_get(9)v4l2_device_put(9)v4l2_device_register(9)v4l2_device_set_name(9)v4l2_device_disconnect(9)v4l2_device_unregister(9)v4l2_device_register_subdev(9)v4l2_device_unregister_subdev(9)__v4l2_device_register_subdev_nodes(9)v4l2_device_register_subdev_nodes(9)v4l2_device_register_ro_subdev_nodes(9)v4l2_subdev_notify(9)v4l2_device_supports_requests(9)v4l2_device_for_each_subdev(9)__v4l2_device_call_subdevs_p(9)__v4l2_device_call_subdevs(9)__v4l2_device_call_subdevs_until_err_p(9)__v4l2_device_call_subdevs_until_err(9)v4l2_device_call_all(9)v4l2_device_mask_call_all(9)v4l2_device_mask_call_until_err(9)v4l2_device_has_op(9)v4l2_device_mask_has_op(9)
okay that's the whole page, bestie π«Ά β source is ./include/media, the date/version vibe is October 2026, and the manual is the Kernel API Manual. mwah πβ¨
π¦ 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