.\" 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 "ATTRIBUTE_CONTAINER_REMOVE_DEVICE" "9" "09 October 2005" "" "" .SH NAME attribute_container_remove_device \- make device eligible for removal. .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp void attribute_container_remove_device (struct device * \fIdev\fB, void (*\fIfn\fB) struct attribute_container *, struct device *, struct class_device *); \fR .SH "ARGUMENTS" .TP \fB\fIdev\fB\fR The generic device .TP \fB\fIfn\fB\fR A function to call to remove the device .SH "DESCRIPTION" .PP This routine triggers device removal. If fn is NULL, then it is simply done via class_device_unregister (note that if something still has a reference to the classdev, then the memory occupied will not be freed until the classdev is released). If you want a .SH "DESCRIPTION" .PP This routine triggers device removal. If fn is NULL, then it is simply done via class_device_unregister (note that if something still has a reference to the classdev, then the memory occupied will not be freed until the classdev is released). If you want a .SH "TWO PHASE RELEASE" .PP remove from visibility and then delete the device, then you should use this routine with a fn that calls \fBclass_device_del\fR and then use \fBattribute_container_device_trigger\fR to do the final put on the classdev.