v4l2_link_freq_to_bitmap(9)
๐ v4l2_link_freq_to_bitmap(9) โ Kernel API Manual ๐
okay so bestie, welcome to the Kernel API Manual page for v4l2_link_freq_to_bitmap(9) โ manual name folded in right up top, cute and accounted for. ๐ซถ This one is all about figuring out which link frequencies your platform actually supports. โจ
๐ธ NAME ๐ธ
Figure out platform-supported link frequencies โ literally the whole assignment. ๐
โจ SYNOPSIS โจ
int v4l2_link_freq_to_bitmap (struct device *dev , const u64
*fw_link_freqs , unsigned int num_of_fw_link_freqs , const s64
*driver_link_freqs , unsigned int num_of_driver_link_freqs , unsigned
long *bitmap );
๐ ARGUMENTS ๐
devโ thestruct devicein question. ๐ซถfw_link_freqsโ array of link frequencies from firmware. โจnum_of_fw_link_freqsโ number of entries infw_link_freqs. ๐ขdriver_link_freqsโ array of link frequencies supported by the driver. ๐num_of_driver_link_freqsโ number of entries indriver_link_freqs. ๐งฎbitmapโ bitmap of driver-supported link frequencies found infw_link_freqs. ๐
๐ฆ DESCRIPTION ๐ฆ
Okay so hereโs the tea: this function checks which driver-supported link frequencies are enabled in system firmware, and then it sets the corresponding bits in bitmap โ after first zeroing bitmap out. โจ So yes, zero first, then set the matching bits. No cap. ๐
๐ธ RETURN ๐ธ
0โ success, slay. โ-ENOENTโ no match found between driver-supported link frequencies and those available in firmware. ๐ญ-ENODATAโ no link frequencies were specified in firmware. ๐
๐ SEE ALSO ๐
Kernel file ./include/media/v4l2-common.h โ and the rest of the friend group is:
v4l2_ctrl_query_fill(9)enum v4l2_i2c_tuner_type(9)v4l2_i2c_new_subdev(9)v4l2_i2c_new_subdev_board(9)v4l2_i2c_subdev_set_name(9)v4l2_i2c_subdev_init(9)v4l2_i2c_subdev_addr(9)v4l2_i2c_tuner_addrs(9)v4l2_i2c_subdev_unregister(9)v4l2_spi_new_subdev(9)v4l2_spi_subdev_init(9)v4l2_spi_subdev_unregister(9)v4l_bound_align_image(9)v4l2_find_nearest_size_conditional(9)v4l2_find_nearest_size(9)v4l2_g_parm_cap(9)v4l2_s_parm_cap(9)enum v4l2_pixel_encoding(9)struct v4l2_format_info(9)v4l2_get_link_freq(9)v4l2_get_active_data_lanes(9)devm_v4l2_sensor_clk_get(9)devm_v4l2_sensor_clk_get_legacy(9)
mwah ๐ โ source ./include/media, date October 2026, page v4l2_link_freq_to_bitmap(9), in the Kernel API Manual. ๐ซถ
๐ฆ 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