Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
System Calls and Libraries: Sections 2 and 3 (Ref Pages Vol 3) > i

io_reset(3I)

Series 800 Only
» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

NAME

io_reset() — reset an I/O interface (OBSOLETED AT 10.30)

SYNOPSIS

#include <dvio.h>

int io_reset(int eid);

DESCRIPTION

io_reset() resets the interface associated with the device file that was opened. It also pulses the peripheral reset line on the GPIO interface, or the IFC line on the HP-IB. eid is an entity identifier of an open HP-IB, Centronics-compatible parallel interface, or GPIO device file obtained from an open(), dup(), fcntl(), or creat() call.

io_reset() also causes an interface to go through its self-test, and returns a failure indication if the interface fails its test.

RETURN VALUE

io_reset() returns 0 (zero) if successful, or -1 if an error was encountered.

ERRORS

io_reset() fails under the following circumstances, and sets errno (see errno(2)) to the value indicated:

[EBADF]

eid does not refer to an open file.

[ENOTTY]

eid does not refer to a channel device file.

[EIO]

Interface could not be reset or failed self-test.

[EACCES]

The interface associated with this eid is locked by another process and O_NDELAY is set for this eid (see io_lock(3I)).

AUTHOR

io_reset() was developed by HP.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.