usb device driver

I have a query regarding accessing data my application is sending in the device driver.

My application is using sockets to write data to the network device example:
where sock acts as a file descriptor for socket.

My question is how my driver will access this data if i’m building a USB device driver for an ethernet interface.

Both network drivers and USB drivers have special interfaces under QNX 6. A network driver has to read and write packets. These packets are passed to or from a layer within io-net. Interacting with the USB hardware is indirect. Data is passed through a USB manager which talks to the hardware directly. … about.html

And to write a Network driver check out: The source code may actually already contain a USB network driver that you can learn from.