v4l2_device_mask_call_all(9)
π
v4l2_device_mask_call_all(9) β the Kernel API Manual moment
okay so picture this: you're in the Kernel API Manual, section 9, and you've got a v4l2_device with a whole little friend group of subdevices, and you only wanna talk to some of them. bestie, that's literally what this function is for. no cap. π«Ά
β¨ NAME β¨
v4l2_device_mask_call_all β calls the specified operation for all subdevices where a group ID matches a specified bitmask. it's giving "selective group chat" energy π
πΈ SYNOPSIS πΈ
v4l2_device_mask_call_all (v4l2_dev , grpmsk , o , f , args... );
π¦ ARGUMENTS π¦
v4l2_devβ thestruct v4l2_devicethat owns the sub-devices you're about to iterate over. it's the main character here, we're just visiting its house. πgrpmskβ the bitmask that gets checked againststruct v4l2_subdev->grp_id, i.e. the group ID that has to match. and listen β use0to match them all. everybody's invited at that point, periodt. π₯oβ the name of the element insidestruct v4l2_subdev_opsthat containsf. each element in there groups together a set of operation functions, so this is basically "which bucket are we picking from". πͺ£fβ the operation function that actually gets called ifcondmatches. the operation functions are defined in groups, according to each element atstruct v4l2_subdev_ops. it's the actual errand. π«argsβ the arguments forf. feed the function, bestie. π
π DESCRIPTION π
Ignore any errors.
(no fr that's it. that's the whole description. we simply do not perceive them. π)
β NOTE β
subdevs cannot be added or deleted while walking the subdevs list. so don't be out here editing the group chat mid-scroll, bestie β that's not the vibe and it's not allowed. π
π SEE ALSO π
the whole extended universe, and we're linking all of it because we're thorough like that:
- 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_call_until_err(9)v4l2_device_mask_call_until_err(9)v4l2_device_has_op(9)v4l2_device_mask_has_op(9)
and that's the whole page, bestie!! π§ from ./include/media, dated October 2026, version v4l2_device_mask_call_all(9) β stay masked, stay iconic, and remember: 0 matches everybody. 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