cdx_unregister_device(9)
π 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 asNULL, and it is not used in this API at all π but it has to be here because thebus_for_each_devAPI expects the function it's passed (that'scdx_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:
cdx_dev_reset(9)reset_cdx_device(9)cdx_match_one_device(9)cdx_match_id(9)cdx_bus_match(9)cdx_mmap_resource(9)
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
- 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