'\" t .\" Title: kobject_create_and_add .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Driver Basics .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "KOBJECT_CREATE_AND_A" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Driver Basics" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" kobject_create_and_add \- create a struct kobject dynamically and register it with sysfs .SH "SYNOPSIS" .HP \w'struct\ kobject\ *\ kobject_create_and_add('u .BI "struct kobject * kobject_create_and_add(const\ char\ *\ " "name" ", struct\ kobject\ *\ " "parent" ");" .SH "ARGUMENTS" .PP \fIname\fR .RS 4 the name for the kobject .RE .PP \fIparent\fR .RS 4 the parent kobject of this kobject, if any\&. .RE .SH "DESCRIPTION" .PP This function creates a kobject structure dynamically and registers it with sysfs\&. When you are finished with this structure, call \fBkobject_put\fR and the structure will be dynamically freed when it is no longer being used\&. .PP If the kobject was not able to be created, NULL will be returned\&. .SH "COPYRIGHT" .br