IDE_DO_DRIVE_CMD

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

ide_do_drive_cmd - issue IDE special command  

SYNOPSIS

"SYNOPSIS"

int ide_do_drive_cmd (ide_drive_t * drive, struct request * rq, ide_action_t action);  

ARGUMENTS

drive
device to issue command
rq
request to issue
action
action for processing
 

DESCRIPTION

This function issues a special IDE device request onto the request queue.

If action is ide_wait, then the rq is queued at the end of the request queue, and the function sleeps until it has been processed. This is for use when invoked from an ioctl handler.

If action is ide_preempt, then the rq is queued at the head of the request queue, displacing the currently-being-processed request and this function returns immediately without waiting for the new rq to be completed. This is VERY DANGEROUS, and is intended for careful use by the ATAPI tape/cdrom driver code.

If action is ide_next, then the rq is queued immediately after the currently-being-processed-request (if any), and the function returns without waiting for the new rq to be completed. As above, This is VERY DANGEROUS, and is intended for careful use by the ATAPI tape/cdrom driver code.

If action is ide_end, then the rq is queued at the end of the request queue, and the function returns immediately without waiting for the new rq to be completed. This is again intended for careful use by the ATAPI tape/cdrom driver code.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 00:02:16 GMT, October 09, 2005