.\" 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_ADD_DEVICE" "9" "09 October 2005" "" "" .SH NAME attribute_container_add_device \- see if any container is interested in dev .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp void attribute_container_add_device (struct device * \fIdev\fB, int (*\fIfn\fB) struct attribute_container *, struct device *, struct class_device *); \fR .SH "ARGUMENTS" .TP \fB\fIdev\fB\fR device to add attributes to .TP \fB\fIfn\fB\fR function to trigger addition of class device. .SH "DESCRIPTION" .PP This function allocates storage for the class device(s) to be attached to dev (one for each matching attribute_container). If no fn is provided, the code will simply register the class device via class_device_add. If a function is provided, it is expected to add the class device at the appropriate time. One of the things that might be necessary is to allocate and initialise the classdev and then add it a later time. To do this, call this routine for allocation and initialisation and then use \fBattribute_container_device_trigger\fR to call \fBclass_device_add\fR on it. Note: after this, the class device contains a reference to dev which is not relinquished until the release of the classdev. .SH "DESCRIPTION" .PP This function allocates storage for the class device(s) to be attached to dev (one for each matching attribute_container). If no fn is provided, the code will simply register the class device via class_device_add. If a function is provided, it is expected to add the class device at the appropriate time. One of the things that might be necessary is to allocate and initialise the classdev and then add it a later time. To do this, call this routine for allocation and initialisation and then use \fBattribute_container_device_trigger\fR to call \fBclass_device_add\fR on it. Note: after this, the class device contains a reference to dev which is not relinquished until the release of the classdev.