[Previous]
[Contents]
[Next]

console_close()

close a channel to the device driver of a console

Synopsis:

#include <sys/console.h>
int console_close( struct _console_ctrl *cc );

Description:

The console_close() function closes a previously opened control channel to the device driver of a console device.

The argument cc is the value returned in a previous console_open() call.

Returns:

0
Success
-1
An error occurred. errno is set to indicate the error.

Errors:

EINVAL
The control structure is in the wrong format.

Examples:

See console_read().

Classification:

QNX

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

console_active(), console_arm(), console_ctrl(), console_font(), console_info(), console_open(), console_protocol(), console_read(), console_size(), console_state(), console_write(), errno


[Previous]
[Contents]
[Next]