ds2482_send_cmd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ds2482_send_cmd β€” the manual page, but make it make sense

okay so bestie, welcome to ds2482_send_cmd(9), from the Kernel API Manual ✨ this one's short and sweet and honestly kind of iconic in a low-key way πŸŽ€


🌸 NAME 🌸

ds2482_send_cmd β€” sends a command without a parameter πŸ’Œ

like. it just yeets the command. no extra data. no strings attached. periodt.


✨ SYNOPSIS ✨

int ds2482_send_cmd (struct ds2482_data *pdev , u8 cmd );

that's it. that's the whole vibe check πŸ¦‹


πŸ’– ARGUMENTS πŸ’–

  • pdev β€” the ds2482 client pointer πŸ’« literally the lil handle to your ds2482 device, it's giving "this is who I'm talking to"
  • cmd β€” the command you're sending, and it's gotta be one of these three, no cap:
    • DS2482_CMD_RESET
    • DS2482_CMD_1WIRE_RESET
    • DS2482_CMD_1WIRE_READ_BYTE
⚠️ heads up bestie, those are the values listed for cmd β€” don't get creative and start inventing your own, that's not the move πŸ™ˆ

πŸ”₯ RETURN πŸ”₯

  • -1 on failure 😭 it did NOT slay
  • 0 on success πŸ‘‘ ate and left no crumbs

πŸ¦‹ SEE ALSO πŸ¦‹

the whole friend group fr fr πŸ’œ β€” kernel file ./drivers/w1/masters/ds2482.c and its besties:

go read those next, iykyk πŸ§šβ€β™€οΈ


sign-off era 🫢✨ this little beauty lives under ./drivers/w1/masters, and the manual's own timestamp says October 2026 β€” so yeah, it's got that fresh-out-the-group-chat energy, and the page itself still calls itself ds2482_send_cmd(9) at the top and bottom, because consistency is main character energy πŸ’…πŸŒΈ

πŸ“¦ where this page comes from