Ethernet driver thread example.
Rather than mess with the USB system to get access to the native Eth, I'm using a ENC28J60 SPI Ethernet controller.
Check GPIO logic: https://github.com/raspberrypi/linux/blob/rpi-3.12.y/drivers/spi/spi-bcm2708.c#L115