RTEMS Logo

RTEMS 4.7.2 On-Line Library


Networking Driver Write the Driver IOCTL Function

PREV UP NEXT Bookshelf BSP and Device Driver Development Guide

15.11: Write the Driver IOCTL Function

This function handles ioctl requests directed at the device. The ioctl commands which must be handled are:

SIOCGIFADDR
SIOCSIFADDR
If the device is an Ethernet interface these commands should be passed on to ether_ioctl.
SIOCSIFFLAGS
This command should be used to start or stop the device, depending on the state of the interface IFF_UP and IFF_RUNNING bits in if_flags:
IFF_RUNNING
Stop the device.
IFF_UP
Start the device.
IFF_UP|IFF_RUNNING
Stop then start the device.
0
Do nothing.


PREV UP NEXT Bookshelf BSP and Device Driver Development Guide

Copyright © 1988-2004 OAR Corporation