cvs_runtime_resume(9)
π cvs_runtime_resume(9) β like, the Kernel API Manual bestie β¨
okay so we're deep in the kernel API manual today and the star of the show is cvs_runtime_resume(9) π she's a lil function with main character energy and honestly? she ate.
πΈ NAME πΈ
cvs_runtime_resume β Runtime PM resume: claim CSI-2 link ownership π
literally what it says on the tin: runtime power management wakes up, and CVS steps in to take ownership of the CSI-2 link. no cap.
β¨ SYNOPSIS β¨
int cvs_runtime_resume (struct device *dev );
π«Ά ARGUMENTS π«Ά
devβ Device π (yes bestie, that's the whole argument, she's lowkey simple like that)
π DESCRIPTION π
okay so here's the vibe: this gets triggered automatically when the IPU (that's the consumer, keep up π
) runtime-resumes. why? because a DL_FLAG_PM_RUNTIME device link makes CVS the supplier β so when the consumer wakes up, the supplier gets pulled in too. it's giving "you can't sit with us unless she's here" energy fr fr.
what she actually does: transfers CSI-2 link ownership to the host π¦ so the IPU can start receiving sensor frames. that's it, that's the whole plot. iconic.
β RETURN β
0 on success, or a negative errno π (so like, check it, bestie, don't just vibe past the return value).
π SEE ALSO π
kernel file ./drivers/media/i2c/cvs/core.c and honestly the whole friend group π:
cvs_set_quirks(9)cvs_read_i2c(9)cvs_write_i2c(9)cvs_checksum(9)cvs_schedule_and_wait(9)cvs_wait_wake_or_sleep(9)cvs_config_mipi(9)cvs_get_device_state(9)cvs_get_device_caps(9)cvs_hw_init(9)cvs_irq_handler(9)cvs_reset(9)cvs_recv(9)cvs_send(9)cvs_set_link_owner(9)cvs_configure_dev_caps(9)cvs_core_probe(9)cvs_probe(9)cvs_core_remove(9)cvs_remove(9)cvs_suspend(9)cvs_resume(9)cvs_runtime_suspend(9)cvs_init(9)cvs_exit(9)
π reminder: dev is a real device pointer, not a vibe. pass something valid or the kernel will simply not be your friend.
and that's the page!! π§ source drop is at ./drivers/media/i2c/cvs, dated October 2026 β mwah, ty for reading, go read the rest of the CVS girlies now πβ¨π
π¦ 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