Gadget are a series of linux drivers that turn a (master) USB port into a slave device when connected to a host, the USB will be presented as a serial, ethernet, camera, printer, storage etc. https://github.com/torvalds/linux/tree/master/drivers/usb/gadget/function

Gadgets are a series of linux drivers that turn a (master) USB port into a slave device when connected to a host. The USB will be presented as a serial port, ethernet, camera, printer, storage, MIDI, etc. The Raspberry Zero is a suitable device for this drivers.