conversion_time(9)
π conversion_time(9) β Kernel API Manual
okay so bestie, welcome to conversion_time from the Kernel API Manual β this is the little helper that gets you the Tconv for the slave π
β¨ NAME β¨
conversion_time β get the Tconv for the slave π«Ά
πΈ SYNOPSIS πΈ
int conversion_time (struct w1_slave *sl );
π¦ ARGUMENTS π¦
slβ the device you want the conversion time for β¨ like, hand me the device and I'll hand you the timing, no cap.
π DESCRIPTION π
So here's the tea β β on devices that support resolution settings, the conversion time depends on the resolution setting. Like, it literally changes based on what you picked, bestie.
This helper function grabs the slave timing, depending on its current setting π it's giving "read the room, then answer" energy.
π₯ RETURN π₯
Conversion time in ms β±οΈ β and if you get a negative value, that's a kernel error code, so don't come for me, come for the errno π
π SEE ALSO π
Kernel file ./drivers/w1/slaves/w1_therm.c and struct w1_therm_family_converter(9) β plus the whole squad, fr fr:
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)device_family(9)bus_mutex_lock(9)check_family_data(9)bulk_read_support(9)temperature_from_RAM(9)int_to_short(9)w1_poll_completion(9)
π reminder bestie: negative return = error code, not a mystery negative millisecond. do not let that slide.
okay that's the whole page, you ate that π go be the main character of your own w1 driver π
source: ./drivers/w1/slaves Β· version date: October 2026 β mwah, see you in the next manpage, bestie ππ§ββοΈβ¨
π¦ 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