Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ io_interrup(3D) — HP-UX 5.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

io_on_interrupt(3)

IO_INTERRUPT_CTL(3D)  —  Series 500 Only

NAME

io_interrupt_ctl − enable/disable interrupts for the associated eid. 

SYNOPSIS

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

HP-UX COMPATIBILITY

Level: Device I/O Library − HP-UX/EXTENDED

Origin: HP

Remarks: Io_interrupt_ctl is implemented on the Series 500 only. 

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.  Enable_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. 

DIAGNOSTICS

Io_interrupt_ctl fails under the following situations, and sets errno (see errno(2)) to the value in square brackets:

eid does not refer to an open file [EBADF]

eid does not refer to a device that supports interrupts [ENOTTY]

no interrupt conditions were specified for this eid [EINVAL]

SEE ALSO

io_on_interrupt(3)
 
 
 

Hewlett-Packard  —  last mod. May 11, 2021

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