Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

io_on_interrupt(3I)

IO_INTERRUPT_CTL(3I)  —  HP-UX

NAME

io_interrupt_ctl − enable/disable interrupts for the associated eid

SYNOPSIS

int io_interrupt_ctl (eid, enable_flag)
int eid, enable_flag;

DESCRIPTION

Eid is an entity identifier of an open HP-IB raw bus or GPIO device file, obtained from an open(2), dup(2), fcntl(2), or creat(2) call.  Flag is an integer which enables or disables interrupts for the associated eid. A non-zero value enables interrupts. 

Interrupts may be disabled or enabled by the user as desired. When an interrupt occurs for a given eid the interrupts associated with this eid are automatically disabled from reoccurring. Interrupts for this eid may be re−enabled by the user with 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 in square brackets:

­[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 the Hewlett-Packard Company. 

SEE ALSO

io_on_interrupt(3I)

Hewlett-Packard Company  —  May 11, 2021

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