Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

scsi_poll(9f) [php man page]

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
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 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
scsi_poll() returns: 0 command completed successfully. -1 command failed. CONTEXT
scsi_poll() can be called from user or interrupt level. This function should not be called when the caller is executing 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 con- text. Therefore, calling scsi_poll from interrupt context is not recommended. SunOS 5.10 30 Aug 1995 scsi_poll(9F)

Check Out this Related Man Page

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
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 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
scsi_poll() returns: 0 command completed successfully. -1 command failed. CONTEXT
scsi_poll() can be called from user or interrupt level. This function should not be called when the caller is executing 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 con- text. Therefore, calling scsi_poll from interrupt context is not recommended. SunOS 5.10 30 Aug 1995 scsi_poll(9F)
Man Page

4 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Solaris , *BSD

Are Solaris's commands the same with *BSD's commands ? Thanks (1 Reply)
Discussion started by: Sasuke
1 Replies

2. UNIX for Advanced & Expert Users

commands do not finish

Hi, I have strange problem executing some command on solaris 5.9 ps command does not finish(hangs) and runs forever without any result. same with cc command too.Please suggest (1 Reply)
Discussion started by: Raom
1 Replies

3. UNIX for Advanced & Expert Users

speedybackend issue

I have a box with centos 4.x that runs openwebmail I know that speedybackend runs with openwebmail but for some reason now when it runs i get a high proccess % when webmail runs PID USER PR NI %CPU TIME+ %MEM VIRT RES SHR S COMMAND 19905 root 25 0 27 1:26.87 0.6... (2 Replies)
Discussion started by: mcraul
2 Replies

4. Solaris

Cksum read error for directory - Solaris 10

Hi, I am getting read error when i run cksum </dir> but this command runs successfully for the files and in different server it runs for both files and directories. I am using in both the servers solaris 10 with patch 148888-03. Please suggest... # cksum ravi(directory) 3454912345 0... (3 Replies)
Discussion started by: Navkreddy
3 Replies