usb_set_intfdata(9)
From the Kernel API Manual, bestie: usb_set_intfdata(9) ๐
โจ NAME โจ
usb_set_intfdata โ associate driver-specific data with an interface ๐ซถ
๐ธ SYNOPSIS ๐ธ
Okay so the whole signature is literally:
void usb_set_intfdata (struct usb_interface *intf , void *data );
๐ฆ ARGUMENTS ๐ฆ
intfโ USB interface โจdataโ driver data ๐
๐ DESCRIPTION ๐
Drivers can use this function in their probe callbacks to associate driver-specific data with an interface โ thatโs the whole point, bestie ๐
Also lowkey important: there is generally no need to clear the driver-data pointer, even if some drivers do so for historical or implementation-specific reasons ๐
๐ฎ SEE ALSO ๐ฎ
Kernel file ./include/linux/usb.h โ and the whole extended universe, bestie:
struct usb_host_endpoint(9)struct usb_interface(9)struct usb_interface_cache(9)struct usb_host_config(9)struct usb_device(9)usb_hub_for_each_child(9)usb_interface_claimed(9)usb_make_path(9)USB_DEVICE(9)USB_DEVICE_VER(9)USB_DEVICE_INTERFACE_CLASS(9)USB_DEVICE_INTERFACE_PROTOCOL(9)USB_DEVICE_INTERFACE_NUMBER(9)USB_DEVICE_INFO(9)USB_INTERFACE_INFO(9)USB_DEVICE_AND_INTERFACE_INFO(9)USB_VENDOR_AND_INTERFACE_INFO(9)struct usb_driver(9)struct usb_device_driver(9)struct usb_class_driver(9)module_usb_driver(9)struct urb(9)usb_fill_control_urb(9)usb_fill_bulk_urb(9)usb_fill_int_urb(9)usb_urb_dir_in(9)usb_urb_dir_out(9)struct usb_sg_request(9)
Source/version: ./include/linux ยท dated October 2026 ยท mwah, slay, 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