'\" t .\" Title: kset_create_and_add .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Driver Basics .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "KSET_CREATE_AND_ADD" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "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" kset_create_and_add \- create a struct kset dynamically and add it to sysfs .SH "SYNOPSIS" .HP \w'struct\ kset\ *\ kset_create_and_add('u .BI "struct kset * kset_create_and_add(const\ char\ *\ " "name" ", const\ struct\ kset_uevent_ops\ *\ " "uevent_ops" ", struct\ kobject\ *\ " "parent_kobj" ");" .SH "ARGUMENTS" .PP \fIname\fR .RS 4 the name for the kset .RE .PP \fIuevent_ops\fR .RS 4 a struct kset_uevent_ops for the kset .RE .PP \fIparent_kobj\fR .RS 4 the parent kobject of this kset, if any\&. .RE .SH "DESCRIPTION" .PP This function creates a kset structure dynamically and registers it with sysfs\&. When you are finished with this structure, call \fBkset_unregister\fR and the structure will be dynamically freed when it is no longer being used\&. .PP If the kset was not able to be created, NULL will be returned\&. .SH "COPYRIGHT" .br