csi_set_link_cfg(9)
π csi_set_link_cfg β like, the Kernel API Manual page you actually wanna read π
okay so bestie, this is a page straight outta the Kernel API Manual, and it's all about programming the default CSI-2 link parameters. yes, that's the whole vibe. slay. β¨
β¨ NAME β¨
csi_set_link_cfg β program default CSI-2 link parameters π
π¦ SYNOPSIS π¦
int csi_set_link_cfg (struct icvs *ctx , u64 link_freq );
πΈ ARGUMENTS πΈ
ctxβ the CVS device context, aka the whole personality of the device you're talking to πlink_freqβ the link frequency, in Hz. yes, hertz. numbers. iconic. π₯
π DESCRIPTION π
so here's the tea: this function populates a HOST_SET_MIPI_CONFIG command using the current lane count and the link frequency, and then submits it to the device. that's it, that's the whole job. no cap. π«Ά
and the rest of the link parameters? they're just gonna chill at the firmware defaults, left completely alone. lowkey respectful of their boundaries, honestly. π β
π RETURN π
0 on success, or a negative errno. that's the vibe check β zero means we ate, negative means we did not eat π
π SEE ALSO π
kernel file ./drivers/media/i2c/cvs/v4l2.c β go peek, iykyk π
cvs_csi_enable_streams(9)cvs_csi_disable_streams(9)cvs_csi_init_state(9)cvs_csi_set_fmt(9)cvs_csi_get_mbus_config(9)cvs_csi_notify_bound(9)cvs_csi_notify_unbind(9)cvs_csi_init_controls(9)cvs_csi_parse_firmware(9)cvs_csi_init(9)cvs_csi_remove(9)
bestie fr fr read the SEE ALSO list, it's giving "the whole friend group" energy π§
mwah π this lil page came from ./drivers/media/i2c/cvs and is dated October 2026 β periodt, that's the sign-off, go configure some links πβ¨
π¦ 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