RTEMS 4.0.0 On-Line Library
Write your driver ioctl function.
RTEMS Network Supplement
2.10: Write your 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.
RTEMS Network Supplement
Copyright © 1988-1998 OAR Corporation