tty_init_lock()
Initialize the TTYCTRL locking mechanism
Synopsis:
#include <sys/io-char.h>
int tty_init_lock( TTYCTRL *ctrl );Arguments:
- ctrl
- A pointer to the TTYCTRL structure.
Description:
The tty_init_lock() initializes the TTYCTRL structure's locking mechanism. Attempting to initialize an already initialized structure results in undefined behavior. After initialization, the structure is in an unlocked state.
Returns:
- EOK
- Success.
- EFAULT
- A fault occurred when the kernel tried to access the locking mechanism.
- ENOMEM
- All kernel synchronization objects are in use.
Classification:
QNX OS
| Safety: | |
|---|---|
| Cancellation point | No |
| Signal handler | Yes |
| Thread | Yes |
Page updated:
