device_family(9)
π device_family β Kernel API Manual β¨
okay so bestie, welcome to device_family(9) β this is the Kernel API Manual page and it's literally about grabbing a pointer. let's get into it π«Ά
πΈ NAME πΈ
device_family β Retrieve a pointer on &struct w1_therm_family_converter
like, that's the whole vibe. it retrieves a pointer. on that struct. slay.
β¨ SYNOPSIS β¨
struct w1_therm_family_converter * device_family (struct w1_slave *sl );
copy it exactly, don't @ me π
π ARGUMENTS π
slβ the slave to retrieve the device specific structure for. that's it, that's the whole argument, she's lowkey simple and we respect it π
π¦ RETURN π¦
it hands you back a pointer to the slave's family converter. and if the family isn't known? it returns NULL β no cap, that's the whole deal π
heads up bestie: NULL is a real possible answer here, so maybe don't just yolo-dereference it, mkay? π
π₯ SEE ALSO π₯
Kernel file ./drivers/w1/slaves/w1_therm.c struct β the main character herself π
and then the whole friend group, in order, fr fr:
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_therm_remove_slave(9)w1_DS18B20_convert_temp(9)w1_DS18S20_convert_temp(9)w1_DS1825_convert_temp(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)
that's the whole squad, iykyk πβ
and that's the page bestie!! π this iconic little writeup lives over in ./drivers/w1/slaves and it's stamped October 2026 β periodt, go read the kernel source, ily, bye π§π
π¦ 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