of_check_coupling_data(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, welcome to the of_check_coupling_data(9) page in the Kernel API Manual ✨ This function is literally here to parse rdev's coupling properties and check data consistency β€” it's giving regulator vibe check, no cap 🫢

πŸŽ€ SYNOPSIS πŸŽ€

bool of_check_coupling_data (struct regulator_dev *rdev );

🌸 ARGUMENTS 🌸

  • rdev β€” pointer to regulator_dev whose data is checked. That's the whole argument, and it's lowkey the main character of this page πŸ’…

πŸ”₯ DESCRIPTION πŸ”₯

This function checks if all of the following conditions are met:

  • rdev's max_spread is greater than 0
  • all coupled regulators have the same max_spread
  • all coupled regulators have the same number of regulator_dev phandles
  • all regulators are linked to each other

It's a full-on data-consistency moment: every single condition has to pass, or the answer is just not it πŸ˜­πŸ’€

⭐ RETURN ⭐

True if all conditions are met; false otherwise.

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/regulator/of_regulator.c

πŸ’– cute sign-off: this gorgeous little page lives under ./drivers/regulator, dated October 2026, and it's the of_check_coupling_data(9) manual β€” periodt, bestie πŸ’–

πŸ“¦ where this page comes from