drivers/usb/gadget/legacy/raw_gadget.c

Source file repositories/reference/linux-study-clean/drivers/usb/gadget/legacy/raw_gadget.c

File Facts

System
Linux kernel
Corpus path
drivers/usb/gadget/legacy/raw_gadget.c
Extension
.c
Size
33960 bytes
Lines
1377
Domain
Driver Families
Bucket
drivers/usb
Inferred role
Driver Families: operation-table or driver-model contract
Status
pattern implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

static const struct file_operations raw_fops = {
	.open =			raw_open,
	.unlocked_ioctl =	raw_ioctl,
	.compat_ioctl =		raw_ioctl,
	.release =		raw_release,
};

static struct miscdevice raw_misc_device = {
	.minor = MISC_DYNAMIC_MINOR,
	.name = DRIVER_NAME,
	.fops = &raw_fops,
};

module_misc_device(raw_misc_device);

Annotation

Implementation Notes