- stretch 4.9.168-1
STRUCT USB_DEVICE(9) | Host-Side Data Types and Macro | STRUCT USB_DEVICE(9) |
NAME¶
struct_usb_device - kernel's representation of a USB deviceSYNOPSIS¶
struct usb_device { int devnum; char devpath[16]; u32 route; enum usb_device_state state; enum usb_device_speed speed; struct usb_tt * tt; int ttport; unsigned int toggle[2]; struct usb_device * parent; struct usb_bus * bus; struct usb_host_endpoint ep0; struct device dev; struct usb_device_descriptor descriptor; struct usb_host_bos * bos; struct usb_host_config * config; struct usb_host_config * actconfig; struct usb_host_endpoint * ep_in[16]; struct usb_host_endpoint * ep_out[16]; char ** rawdescriptors; unsigned short bus_mA; u8 portnum; u8 level; unsigned can_submit:1; unsigned persist_enabled:1; unsigned have_langid:1; unsigned authorized:1; unsigned authenticated:1; unsigned wusb:1; unsigned lpm_capable:1; unsigned usb2_hw_lpm_capable:1; unsigned usb2_hw_lpm_besl_capable:1; unsigned usb2_hw_lpm_enabled:1; unsigned usb2_hw_lpm_allowed:1; unsigned usb3_lpm_u1_enabled:1; unsigned usb3_lpm_u2_enabled:1; int string_langid; char * product; char * manufacturer; char * serial; struct list_head filelist; int maxchild; u32 quirks; atomic_t urbnum; unsigned long active_duration; #ifdef CONFIG_PM unsigned long connect_time; unsigned do_remote_wakeup:1; unsigned reset_resume:1; unsigned port_is_suspended:1; #endif struct wusb_dev * wusb_dev; int slot_id; enum usb_device_removable removable; struct usb2_lpm_parameters l1_params; struct usb3_lpm_parameters u1_params; struct usb3_lpm_parameters u2_params; unsigned lpm_disable_count; };
MEMBERS¶
devnumdevpath[16]
route
state
speed
tt
ttport
toggle[2]
parent
bus
ep0
dev
descriptor
bos
config
actconfig
ep_in[16]
ep_out[16]
rawdescriptors
bus_mA
portnum
level
can_submit
persist_enabled
have_langid
authorized
authenticated
wusb
lpm_capable
usb2_hw_lpm_capable
usb2_hw_lpm_besl_capable
usb2_hw_lpm_enabled
usb2_hw_lpm_allowed
usb3_lpm_u1_enabled
usb3_lpm_u2_enabled
string_langid
product
manufacturer
serial
filelist
maxchild
quirks
urbnum
active_duration
connect_time
do_remote_wakeup
reset_resume
port_is_suspended
wusb_dev
slot_id
removable
l1_params
u1_params
u2_params
lpm_disable_count
NOTES¶
Usbcore drivers should not set usbdev->state directly. Instead use usb_set_device_state.COPYRIGHT¶
April 2019 | Kernel Hackers Manual 4.9. |