vi50_open(3) CLIX vi50_open(3)
NAME
vi50_open - Opens a VI50 channel
LIBRARY
Intergraph Device Library (libix.a)
SYNOPSIS
#include <sys/xio/xerr.h>
int vi50_open(
int channel );
PARAMETERS
channel
Specifies the VI50 channel to open.
DESCRIPTION
The vi50_open() function opens the specified VI50 channel. Only one
process is allowed to open a VI50 channel at a time. Each VI50 device is
represented by a channel number, such that channel 0 refers to the device
whose EVME adapter card is located in the lowest slot on the SRX bus.
Once a process has successfully opened a channel, it may grant access to
his children with the vi50_ioctl() call.
RETURN VALUES
The vi50_open() function returns a value of 0 if successful. If not
successful, one of the failure codes listed in the ERRORS section is
returned.
ERRORS
The vi50_open() function fails if one of the following is true:
[XIO_FAILURE]
The system does not contain the driver needed to support the
request.
[VI50_INVALID_DEVICE]
There is no hardware corresponding to the channel.
[VI50_IN_USE]
The channel has already been opened by a process.
RELATED INFORMATION
2/94 - Intergraph Corporation 1
vi50_open(3) CLIX vi50_open(3)
Functions: vi50_close(3), vi50_ioctl(3)
Files: xvi50(7)
2 Intergraph Corporation - 2/94