read_powermode(9)
πΈ 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 π
- Kernel file
./drivers/w1/slaves/w1_therm.cstructw1_therm_family_converter(9), structw1_therm_family_data(9), structtherm_info(9),reset_select_slave(9),convert_t(9),read_scratchpad(9),write_scratchpad(9),copy_scratchpad(9),recall_eeprom(9),trigger_bulk_read(9),w1_therm_add_slave(9),w1_therm_remove_slave(9),w1_DS18B20_convert_temp(9),w1_DS18S20_convert_temp(9),w1_DS1825_convert_temp(9),device_family(9),bus_mutex_lock(9),check_family_data(9),bulk_read_support(9),conversion_time(9),temperature_from_RAM(9),int_to_short(9),w1_poll_completion(9).
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms