usb_deregister(9)
π usb_deregister β unregister a USB interface driver β¨
Okay bestie, so this one is from the Kernel API Manual (section 9 of the man pages, iykyk) and it's literally the undo button for a USB interface driver. Short page, but every detail matters, so let's go π«Ά
πΈ SYNOPSIS πΈ
void usb_deregister (struct usb_driver *driver );
π ARGUMENTS π
driverβ the USB operations of the interface driver you're unregistering. Like, the driver itself, bestie, hand it over π
π CONTEXT π
must be able to sleep π΄
Fr fr β this call is allowed to sleep, so don't go calling it from somewhere that can't, mwah.
β¨ DESCRIPTION β¨
It unlinks the specified driver from the internal USB driver list. That's the whole vibe β you're detaching it from the kernel's little driver guest list π
π₯ NOTE π₯
Huge one, don't skip this π β if you called usb_register_dev, you still need to call usb_deregister_dev to clean up your driver's allocated minor numbers. This * call will no longer do it for you. Like, it used to, and now it doesn't. Character development π
π SEE ALSO π
Kernel file ./drivers/usb/core/driver.c β and honestly, the whole friend group:
usb_driver_claim_interface(9)usb_driver_release_interface(9)usb_match_id(9)usb_register_device_driver(9)usb_deregister_device_driver(9)usb_register_driver(9)usb_suspend_both(9)usb_resume_both(9)usb_enable_autosuspend(9)usb_disable_autosuspend(9)usb_autosuspend_device(9)usb_autoresume_device(9)usb_autopm_put_interface(9)usb_autopm_put_interface_async(9)usb_autopm_put_interface_no_suspend(9)usb_autopm_get_interface(9)usb_autopm_get_interface_async(9)usb_autopm_get_interface_no_resume(9)
k bye bestie, go deregister something π¦
This icon of a page lives in ./drivers/usb/core and was dated October 2026 β october era, we love her π
π¦ 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