v4l2_get_link_freq(9)
π NAME π
okay so bestie, welcome to the v4l2_get_link_freq(9) page from the Kernel API Manual β itβs giving βget link rate from transmitterβ and honestly? iconic behavior π
v4l2_get_link_freq - Get link rate from transmitter πΈ
β¨ SYNOPSIS β¨
s64 v4l2_get_link_freq (const struct media_pad *pad , unsigned int mul ,
unsigned int div );
π ARGUMENTS π
padβ the transmitterβs media pad, periodt π«Άmulβ the multiplier between pixel rate and link frequency. Bits per pixel on D-PHY, samples per clock on parallel.0otherwise π«divβ the divisor between pixel rate and link frequency. Number of data lanes times two on D-PHY,1on parallel.0otherwise π
π¦ DESCRIPTION π¦
so this function literally obtains and returns the link frequency from the transmitter sub-deviceβs pad, no cap β¨
the link frequency is retrieved using the get_mbus_config sub-device pad operation. if that fails, the function falls back to obtaining the frequency either directly from the V4L2_CID_LINK_FREQ control β if itβs implemented by the transmitter β or by calculating it from the pixel rate obtained from the V4L2_CID_PIXEL_RATE control π
π RETURN π
>0β link frequency, slay π₯-ENOENTβ link frequency or pixel rate control not found π-EINVALβ invalid link frequency value π
π SEE ALSO π
Kernel file: ./include/media/v4l2-common.h
bestie, if you wanna keep reading, these are the linked girlies π
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_active_data_lanes(9)v4l2_link_freq_to_bitmap(9)devm_v4l2_sensor_clk_get(9)devm_v4l2_sensor_clk_get_legacy(9)
thatβs the whole vibe, bestie π«Ά this page came from ./include/media, dated October 2026, and tagged v4l2_get_link_freq(9) β periodt β¨π
π¦ 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