Sun Microsystems S16A Error Conditions, foiparityerror, Description, Syntax, Arguments, s16ap

Models: S16A

1 46
Download 46 pages 17.09 Kb
Page 26
Image 26
foi_parity_error

Input and Output

S16A User’s Guide

foi_parity_error

Description

Checks to determine if a parity error has occurred since the last time this routine was called and returns 0 if not, 1 if so, and –1 if the routine is not supported for a particular device or an illegal argument was provided.

Syntax

int foi_parity_error(S16aDev *s16a_p);

Arguments

s16a_p

S16A device handle returned from s16a_open

Return

0 if no error; 1 if parity error; –1 if the routine is not supported or if an illegal argument was provided.

Error Conditions

The table below shows some of the error codes that may be received from a call to the S16A driver. After any I/O system call, the errno global variable contains the error code, if any, and the perror system call can print out a string describing the error code. Refer to your system programming documentation for details about errno and perror.

Error Code

Failing Driver Call

Error Condition

 

 

 

 

 

 

ENXIO
open

The S16A attach failed. The device is not present.

EEXIST

open

The S16A is already opened with an exclusive lock.

 

 

 

Table 3. Error Codes and Conditions

22

EDT, Inc. October, 1996

Page 26
Image 26
Sun Microsystems S16A Error Conditions, foiparityerror, Description, Syntax, Arguments, s16ap, Return, Error Code, Enxio