w1_therm_remove_slave(9)
π w1_therm_remove_slave β like, the Kernel API Manual page you didn't know you needed
okay bestie, so this is w1_therm_remove_slave(9) from the Kernel API Manual and it's honestly a tiny little icon β a cleanup function with main character energy. Let's get into it π
β¨ NAME β¨
w1_therm_remove_slave β the one that gets called when a slave is removed. that's it, that's the whole vibe π¦
πΈ SYNOPSIS πΈ
void w1_therm_remove_slave (struct w1_slave *sl );
that's the whole signature, no cap β a void function, one pointer, done. π
π§ ARGUMENTS π§
slβ the slave that's getting removed. yeah. that one. wave goodbye π
π DESCRIPTION π
so here's the lore: this gets called by the master when the slave is considered to not be on the bus anymore. like, the master does a little vibe check on the bus, goes "hmm, not seeing them anymore," and then this function runs. π«Ά
and what's it for? freeing memory. that's literally it. it's the friend who makes sure nobody leaves their jacket at the party. tidy. responsible. lowkey iconic. β¨
π₯ SEE ALSO π₯
everything in the w1 therm cinematic universe, fr fr:
- Kernel file
./drivers/w1/slaves/w1_therm.cstruct w1_therm_family_converter(9)struct w1_therm_family_data(9)struct therm_info(9)reset_select_slave(9)convert_t(9)read_scratchpad(9)write_scratchpad(9)copy_scratchpad(9)recall_eeprom(9)read_powermode(9)trigger_bulk_read(9)w1_therm_add_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)
like, read the whole squad, iykyk ππ
π real talk: this is a remove function, so it's the cleanup crew β it runs when the slave's already been judged as off the bus, and its whole job is giving that memory back. no drama, just freeing. periodt.
mwah π this page lives in ./drivers/w1/slaves and it's dated October 2026, straight out of the Kernel API Manual β go off, little cleanup function, you ate πβ
π¦ 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