v4l2_link_freq_to_bitmap(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

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 โ€” the struct device in question. ๐Ÿซถ
  • fw_link_freqs โ€” array of link frequencies from firmware. โœจ
  • num_of_fw_link_freqs โ€” number of entries in fw_link_freqs. ๐Ÿ”ข
  • driver_link_freqs โ€” array of link frequencies supported by the driver. ๐Ÿ’…
  • num_of_driver_link_freqs โ€” number of entries in driver_link_freqs. ๐Ÿงฎ
  • bitmap โ€” bitmap of driver-supported link frequencies found in fw_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:


mwah ๐Ÿ’‹ โ€” source ./include/media, date October 2026, page v4l2_link_freq_to_bitmap(9), in the Kernel API Manual. ๐Ÿซถ

๐Ÿ“ฆ where this page comes from