drivers/usb/gadget/function/u_phonet.h

Source file repositories/reference/linux-study-clean/drivers/usb/gadget/function/u_phonet.h

File Facts

System
Linux kernel
Corpus path
drivers/usb/gadget/function/u_phonet.h
Extension
.h
Size
590 bytes
Lines
26
Domain
Driver Families
Bucket
drivers/usb
Inferred role
Driver Families: implementation source
Status
source 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

struct f_phonet_opts {
	struct usb_function_instance func_inst;
	bool bound;
	struct net_device *net;
};

struct net_device *gphonet_setup_default(void);
void gphonet_set_gadget(struct net_device *net, struct usb_gadget *g);
int gphonet_register_netdev(struct net_device *net);
void gphonet_cleanup(struct net_device *dev);

#endif /* __U_PHONET_H */

Annotation

Implementation Notes