read_powermode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay bestie, say hi to read_powermode(9) β€” the Kernel API Manual page that's literally here to query the power mode of the slave. 🫢 No cap, that's the whole name vibe.

⚑ SYNOPSIS ⚑

int read_powermode (struct w1_slave *sl );

πŸŽ€ ARGUMENTS πŸŽ€

  • sl β€” the slave you want to retrieve the power mode from, bestie. πŸ¦‹

✨ DESCRIPTION ✨

It asks the device to get its power mode β€” external or parasite β€” and stores the power status in the struct w1_therm_family_data. That's it, that's the function, and it's giving very focused main character energy. πŸ’…

πŸ”₯ RETURN πŸ”₯

  • 0 β€” parasite powered device 🌸
  • 1 β€” externally powered device ⚑
  • <0 β€” kernel error code 😭

πŸ‘‘ SEE ALSO πŸ‘‘


mwah πŸ’‹ this page lives under ./drivers/w1/slaves, dated October 2026, and it's from the Kernel API Manual β€” slay. ✨

πŸ“¦ where this page comes from