IDE_UNREGISTER

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

 

NAME

ide_unregister - free an ide interface  

SYNOPSIS

"SYNOPSIS"

void ide_unregister (unsigned int index);  

ARGUMENTS

index
index of interface (will change soon to a pointer)
 

DESCRIPTION

Perform the final unregister of an IDE interface. At the moment we don't refcount interfaces so this will also get split up.  

LOCKING

The caller must not hold the IDE locks The drive present/vanishing is not yet properly locked Take care with the callbacks. These have been split to avoid deadlocking the IDE layer. The shutdown callback is called before we take the lock and free resources. It is up to the caller to be sure there is no pending I/O here, and that the interfce will not be reopened (present/vanishing locking isnt yet done btw). After we commit to the final kill we call the cleanup callback with the ide locks held.

Unregister restores the hwif structures to the default state. This is raving bonkers.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
LOCKING

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