cdx_unregister_device(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME

cdx_unregister_device β€” bestie, this is the one that unregisters a CDX device πŸŽ€ that's it, that's the whole vibe


✨ SYNOPSIS ✨

int cdx_unregister_device (struct device *dev , void *data );

Like, yes, it returns an int, and yes, there are two args β€” don't panic, one of them is basically decorative 😭🫢


🌸 ARGUMENTS 🌸

  • dev β€” the CDX device in question πŸ’– the actual main character here.
  • data β€” okay so real talk: this is always passed as NULL, and it is not used in this API at all πŸ™ˆ but it has to be here because the bus_for_each_dev API expects the function it's passed (that's cdx_unregister_device, hi πŸ‘‹) to have it as an argument. So it's giving "required by the dress code but never actually worn" πŸ’€ fr fr.

⭐ RETURN ⭐

0 on success. That's it, that's the whole return story, no cap πŸ‘‘βœ¨


πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/cdx/cdx.c (iykyk 🧚) and the rest of the cdx crew, all iconic, all linked:


k that's the whole page, bestie β€” go forth and unregister responsibly πŸ’œ

this lil gem lives in ./drivers/cdx, from the Kernel API Manual, dated October 2026, and its name is (say it with me) cdx_unregister_device(9) πŸŽ€βœ¨ slay

πŸ“¦ where this page comes from