qcom_labibb_...k_ocp_status(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ“


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