scsi_poll man page on OpenIndiana

Man page or keyword search:  
man Server   20441 pages
apropos Keyword Search (all sections)
Output format
OpenIndiana logo
[printable version]

scsi_poll(9F)		 Kernel Functions for Drivers		 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);

INTERFACE LEVEL
       Solaris DDI specific (Solaris DDI).

PARAMETERS
       pkt    Pointer to the scsi_pkt(9S) structure.

DESCRIPTION
       The  scsi_poll()	 function  requests  the  host adapter driver to run a
       polled command. Unlike scsi_transport(9F)  which	 runs  commands	 asyn‐
       chronously,  scsi_poll()	 runs commands to completion before returning.
       If the pkt_time member of pkt is 0, the value of	 pkt_time is defaulted
       to SCSI_POLL_TIMEOUT to prevent an indefinite hang of the system.

RETURN VALUES
       The scsi_poll() function returns:

       0     command completed successfully.

       -1    command failed.

CONTEXT
       The  scsi_poll() function can be called from user, interrupt, or kernel
       context. This function should not be called when the caller is  execut‐
       ing timeout(9F) in the context of a thread.

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

       Writing Device Drivers

WARNINGS
       Since  scsi_poll() runs commands to completion before returning, it may
       require more time than is desirable when called from interrupt context.
       Therefore, calling scsi_poll from interrupt context is not recommended.

SunOS 5.11			  16 Jan 2006			 scsi_poll(9F)
[top]

List of man pages available for OpenIndiana

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net