ti_bandgap_validate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ ti_bandgap_validate(9) ✨

okay so bestie, welcome to this page from the Kernel API Manual β€” it's all about the tiny sanity-check helper ti_bandgap_validate, and it's giving β€œsmall function, big main character energy” πŸ’…


🌸 NAME 🌸

ti_bandgap_validate β€” helper to check the sanity of a struct ti_bandgap 🫢

✨ SYNOPSIS ✨

int ti_bandgap_validate (struct ti_bandgap *bgp , int id );

πŸŽ€ ARGUMENTS πŸŽ€

  • bgp β€” a struct ti_bandgap pointer. That's the bandgap struct bestie is checking.
  • id β€” the bandgap sensor id. That's the sensor slot we're asking about.

πŸ¦‹ DESCRIPTION πŸ¦‹

This is the helper that checks if the bandgap pointer is valid and if the sensor id is also applicable. Basically a vibe check for the struct ti_bandgap pointer and the sensor id β€” no cap ✨

πŸ’– RETURN πŸ’–

  • 0 β€” no errors, we're slaying πŸ”₯
  • -EINVAL β€” returned for an invalid bgp pointer πŸ™ˆ
  • -ERANGE β€” returned if id cannot index bgp sensors πŸ’€

🌈 SEE ALSO 🌈

Kernel file ./drivers/thermal/ti-soc-thermal/ti-bandgap.c β€” and the whole friend group:


xoxo bestie, this page comes from ./drivers/thermal/ti-soc-thermal, dated October 2026, and it's literally still titled ti_bandgap_validate(9) β€” periodt πŸ’…πŸ’–

πŸ“¦ where this page comes from