Unlock the window of the card in the selected socket
#include <sys/pccard.h>
int pccard_unlock( pccard_t handle,
int socket,
int index );
libpccard
The pccard_unlock() function unlocks a window previously locked by a call to
pccard_lock().
It can only unlock a window locked by the same process ID -- you can't unlock a window
locked by another process. The parameters are:
- handle
- Obtained from the call to
pccard_attach().
- socket
- Contains both the socket number as well as the function within the socket.
This is achieved by shifting the function number left 8 bits and ORing it with the socket number.
The socket number is zero based.
- index
- The window/function number that's to be unlocked. The window number is obtained from
the _pccard_info structure (see pccard_info()).
- 0
- Success.
- -1
- An error occurred (errno is set).
- EBADF
- Invalid handle parameter.
- ENODEV
- Invalid socket parameter, no PC Card is present in the socket,
or invalid index parameter.
See pccard_arm().
QNX 6
Safety: | |
Cancellation point |
Yes |
Interrupt handler |
No |
Signal handler |
Yes |
Thread |
Yes |
pccard_arm(),
pccard_attach(),
pccard_info(),
pccard_lock()