NAME
io_interrupt_ctl() — enable/disable interrupts for the associated eid (OBSOLETED AT 10.30)
SYNOPSIS
#include <dvio.h>
int io_interrupt_ctl(int eid, int enable_flag);
DESCRIPTION
eid
is the entity identifier of an open
HP-IB
raw bus, Centronics-compatible parallel, or
GPIO
device file obtained from an
open(),
dup(),
fcntl(),
or
creat()
call.
flag
is an integer which enables or disables interrupts for the associated
eid.
A non-zero value enables interrupts.
Interrupts can be disabled or enabled as desired.
When an interrupt occurs for a given
eid
the interrupts associated with this
eid
are automatically disabled from recurring.
To re-enable interrupts for this
eid,
use
io_interrupt_ctl().
RETURN VALUE
io_interrupt_ctl()
returns 0 (zero) if successful, or -1 if an error was encountered.
ERRORS
io_interrupt_ctl()
fails under the following situations, 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 device that supports interrupts.
- [EINVAL]
No interrupt conditions were specified for this
eid.
AUTHOR
io_interrupt_ctl()
was developed by HP.