usb_put_dev(9)
π NAME π
okay so this is the usb_put_dev(9) page from the Kernel API Manual, and the whole vibe is: release a use of the usb device structure π
. Like, youβre done using a USB device, so you let it go. slay. β¨
πΈ SYNOPSIS πΈ
void usb_put_dev (struct usb_device *dev );
π¦ ARGUMENTS π¦
devβ the device that's been disconnected. yes bestie, that exact one. π«Ά
π DESCRIPTION π
Must be called when a user of a device is finished with it. fr fr. When the last user of the device calls this function, the memory of the device is freed. πβ¨
no skipping this one, bestie β the βlast userβ moment is literally when the device memory gets freed, so don't leave it hanging. π
π SEE ALSO π
Kernel file: ./drivers/usb/core/usb.c β and the whole USB friend group, in order:
usb_find_common_endpoints(9)usb_find_common_endpoints_reverse(9)usb_find_endpoint(9)usb_check_bulk_endpoints(9)usb_check_int_endpoints(9)usb_find_alt_setting(9)usb_ifnum_to_if(9)usb_altnum_to_altsetting(9)usb_find_interface(9)usb_for_each_dev(9)usb_release_dev(9)usb_alloc_dev(9)usb_get_dev(9)usb_get_intf(9)usb_put_intf(9)usb_intf_get_dma_device(9)usb_lock_device_for_reset(9)usb_get_current_frame_number(9)usb_alloc_coherent(9)usb_free_coherent(9)usb_alloc_noncoherent(9)usb_free_noncoherent(9)usb_endpoint_max_periodic_payload(9)usb_endpoint_is_hs_isoc_double(9)
π source/version: ./drivers/usb/core Β· date: October 2026 Β· manual: usb_put_dev(9) β mwah, bye bestie π
π
π¦ 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