
TPMC500-SW-42 - VxWorks Device Driver
Page 15 of 19
4.4 ioctl()
NAME
ioctl() - performs an I/O control function.
SYNOPSIS
int ioctl
(
int
fd,
/* device descriptor from opened TPMC500 device
*/
int
function,
/* function code
*/
int
arg
/* optional function dependent argument
*/
)
DESCRIPTION
Special I/O operation that do not fit to the standard basic I/O calls will be performed by calling the
ioctl()
function with a specific function code and an optional function dependent argument.
PARAMETER
The parameter
fd
specifies the device descriptor of the opened TPMC500 device.
The parameter
function
selects the action, which will be executed by the driver.
The structure
arg
depends on the function (see description below).
RETURNS
OK or ERROR (if the device descriptor does not exist or the function code is unknown or an error
occurred)
INCULDES
ioLib.h, semLib.h, tpmc500.h
SEE ALSO
ioLib, basic I/O routine -
ioctl(),
VxWorks Programmer’s Guide: I/O System