device_family(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

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