TPMC866-SW-42 - VxWorks Device Driver
Page 14 of 37
EXAMPLE
int
fd;
…
/*-----------------------------------------------------------
Open the device named "/tp866/1" for I/O
-----------------------------------------------------------*/
fd = open("/tp866/1", 0, 0);
if (fd == ERROR)
{
/* Handle errror */
}
…
RETURNS
A device descriptor number or ERROR (if the device does not exist or no device descriptors are
available)
SEE ALSO
ioLib, basic I/O routine -
open()