qcom_labibb_...k_ocp_status(9)
π qcom_labibb_check_ocp_status(9)
okay so bestie, welcome to the Kernel API Manual β¨ β today's main character is qcom_labibb_check_ocp_status, and honestly? She's a vibe check for your regulator. Let's get into it π«Ά
πΈ NAME πΈ
qcom_labibb_check_ocp_status β check the Over-Current Protection status π₯
β¨ SYNOPSIS β¨
int qcom_labibb_check_ocp_status (struct labibb_regulator *vreg );
π ARGUMENTS π
vregβ the main driver structure, aka the whole personality of this operation π
π¦ DESCRIPTION π¦
So here's the tea β β this function goes and peeks at the STATUS1 register, specifically hunting for the VREG_OK bit π. And like, if that bit is set? That means there's no Over-Current event. Iconic. No drama, no nothing, we love a calm register π§
π RETURN π
- Zero β no over-current happening, all good bestie π
- 1 β we're in over-current, oh no π
- a negative number β that's an error, something went sideways π
π SEE ALSO π
Kernel file ./drivers/regulator/qcom-labibb-regulator.c π
qcom_labibb_ocp_recovery_worker(9)qcom_labibb_ocp_isr(9)qcom_labibb_check_sc_status(9)qcom_labibb_sc_recovery_worker(9)qcom_labibb_sc_isr(9)
and that's the whole page, periodt π
this lil gem lives over in ./drivers/regulator, dated October 2026 β go off, queen ππ
π¦ 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