Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ io_interrup(3I) — HP-UX ANSI C A.09.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

dup(2)

creat(2)

fcntl(2)

open(2)

io_on_interrupt(3I)

io_interrupt_ctl(3I)  —  Series 300, 400, 800 Only

NAME

io_interrupt_ctl() − enable/disable interrupts for the associated eid

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. 

SEE ALSO

dup(2), creat(2), fcntl(2), open(2), io_on_interrupt(3I). 

Hewlett-Packard Company  —  HP-UX Release 9.0: August 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026