include/uapi/linux/usb/g_hid.h

Source file repositories/reference/linux-study-clean/include/uapi/linux/usb/g_hid.h

File Facts

System
Linux kernel
Corpus path
include/uapi/linux/usb/g_hid.h
Extension
.h
Size
1251 bytes
Lines
41
Domain
Core OS
Bucket
Core Kernel Interface
Inferred role
Core OS: implementation source
Status
source implementation candidate

Why This File Exists

Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.

Dependency Surface

Detected Declarations

Annotated Snippet

struct usb_hidg_report {
	__u8 report_id;
	__u8 userspace_req;
	__u16 length;
	__u8 data[MAX_REPORT_LENGTH];
	__u8 padding[4];
};

/* The 'g' code is used by gadgetfs and hid gadget ioctl requests.
 * Don't add any colliding codes to either driver, and keep
 * them in unique ranges.
 */

#define GADGET_HID_READ_GET_REPORT_ID   _IOR('g', 0x41, __u8)
#define GADGET_HID_WRITE_GET_REPORT     _IOW('g', 0x42, struct usb_hidg_report)

#endif /* __UAPI_LINUX_USB_G_HID_H */

Annotation

Implementation Notes