.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "IDE_UNREGISTER" "9" "09 October 2005" "" "" .SH NAME ide_unregister \- free an ide interface .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp void ide_unregister (unsigned int \fIindex\fB); \fR .SH "ARGUMENTS" .TP \fB\fIindex\fB\fR index of interface (will change soon to a pointer) .SH "DESCRIPTION" .PP Perform the final unregister of an IDE interface. At the moment we don't refcount interfaces so this will also get split up. .SH "LOCKING" .PP 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. .PP Unregister restores the hwif structures to the default state. This is raving bonkers.