Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ scsi_poll(9F) — SunOS 5.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

makecom(9F)

scsi_transport(9F)

scsi_pkt(9S)

scsi_poll(9F)

NAME

scsi_poll −  run a polled SCSI command on behalf of a target driver

SYNOPSIS

#include <sys/scsi/scsi.h>

int scsi_poll(struct scsi_pkt ∗pkt);

ARGUMENTS

pkt Pointer to the scsi_pkt(9S) structure. 

INTERFACE LEVEL

SPARC architecture specific (SPARC DDI). 

DESCRIPTION

scsi_poll() requests the host adapter driver to run a polled command.  Unlike scsi_transport(9F) which runs commands asynchronously, scsi_poll() runs commands to completion. If pkt_time is zero it is defaulted to SCSI_POLL_TIMEOUT to prevent an indefinite hang of the system. 

RETURN VALUES

scsi_poll() returns:

0 command completed successfully. 

-1 command failed. 

CONTEXT

scsi_poll () can be called from user or interrupt level. 

SEE ALSO

makecom(9F), scsi_transport(9F), scsi_pkt(9S)

SunOS 5.1 Writing Device Drivers

SunOS 5.1  —  Last change: 17 Sep 1991

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