ds2482_select_register(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ ds2482_select_register(9) β€” the Kernel API Manual, bestie edition πŸ’…

Okay so this page lives in the Kernel API Manual, and the star of the show is ds2482_select_register πŸ’– β€” a lil function whose whole job is setting the read pointer. That's it. That's the vibe. She's simple, she's iconic, she points at reads. Periodt.


🌸 NAME 🌸

ds2482_select_register β€” literally just sets the read pointer 🎯


πŸ¦‹ SYNOPSIS πŸ¦‹

int ds2482_select_register (struct ds2482_data *pdev , u8 read_ptr );

Returns an int, takes a struct ds2482_data *pdev and a u8 read_ptr. Signature stays exactly like that, no cap 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • pdev β€” the ds2482 client pointer πŸ‘‘ like, this is your device, your main character, you hand her over.
  • read_ptr β€” see DS2482_PTR_CODE_xxx above, bestie πŸ’… the pointer code constants live up there, go look, iykyk.

⭐ RETURN ⭐

  • -1 on failure πŸ’€ (it happens, we don't talk about it)
  • 0 on success ✨ slay

🌈 SEE ALSO 🌈

Kernel file ./drivers/w1/masters/ds2482.c β€” go read the source, she's gorgeous πŸ”₯

And the whole friend group, fr fr:


🧚 lowkey a reminder: the read_ptr values are the DS2482_PTR_CODE_xxx ones from above β€” don't be out here inventing your own numbers, bestie 😭

okay that's the whole page!! πŸ“ this lil gem hangs out in ./drivers/w1/masters, dated October 2026, and yes the title is still ds2482_select_register(9) because she's not changing for anyone πŸ’œ mwah, go set some read pointers 🫢✨

πŸ“¦ where this page comes from