Releasing The Simple Lock And Resetting The Ipl - Compaq Tru64 UNIX Installation Manual

Writing network device drivers
Table of Contents

Advertisement

If the user sets media that the card does not have, the interface may
not work.
Selects the new mode.
9
Resets the device to pick up the new mode (if the interface was running).
10
The default case returns an error that indicates that the caller has
11
issued an invalid ioctl command.

12.17 Releasing the Simple Lock and Resetting the IPL

The following code shows how the el_ioctl( ) routine releases the simple
lock and resets the IPL:
if (lock_on) {
simple_unlock(&sc->el_softc_lock);
splx(s);
}
return (status);
}
If the simple lock is still held, calls the simple_unlock( ) routine.
1
Returns the status of the ioctl request.
2
1
2
Implementing the ioctl Section 12–13

Advertisement

Table of Contents
loading

Table of Contents