regulator_lock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so this is the regulator_lock(9) page from the Kernel API Manual, and it is literally about locking a single regulator. slay.

✨ SYNOPSIS ✨

void regulator_lock (struct regulator_dev *rdev );

πŸŽ€ ARGUMENTS πŸŽ€

  • rdev β€” regulator source.

πŸ¦‹ DESCRIPTION πŸ¦‹

bestie, here's the vibe: this function can be called many times by one task on a single regulator, and its mutex will be locked only once. no cap.

and if a task calling this function is other than the one that initially locked the mutex, it will wait on the mutex. periodt.

πŸ’œ SEE ALSO πŸ’œ

Kernel file ./drivers/regulator/core.c β€” the whole squad is here, iykyk:


and that's the whole page, bestie 🫢 signed off from source/version ./drivers/regulator, dated October 2026, and this was regulator_lock(9) πŸ’…πŸ’–βœ¨

πŸ“¦ where this page comes from