ds2482_select_register(9)
β¨ 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β seeDS2482_PTR_CODE_xxxabove, bestie π the pointer code constants live up there, go look, iykyk.
β RETURN β
-1on failure π (it happens, we don't talk about it)0on 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:
ds2482_calculate_config(9)ds2482_send_cmd(9)ds2482_send_cmd_data(9)ds2482_wait_1wire_idle(9)ds2482_set_channel(9)ds2482_w1_touch_bit(9)ds2482_w1_triplet(9)ds2482_w1_write_byte(9)ds2482_w1_read_byte(9)ds2482_w1_reset_bus(9)
π§ lowkey a reminder: theread_ptrvalues are theDS2482_PTR_CODE_xxxones 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
- 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