conversion_time(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


πŸ’€ 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