1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>Kernel objects manipulation</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Device Drivers"><link rel="up" href="Basics.html" title="Chapter&#160;1.&#160;Driver Basics"><link rel="prev" href="API-flush-kthread-worker.html" title="flush_kthread_worker"><link rel="next" href="API-kobject-get-path.html" title="kobject_get_path"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Kernel objects manipulation</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-flush-kthread-worker.html">Prev</a>&#160;</td><th width="60%" align="center">Chapter&#160;1.&#160;Driver Basics</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-kobject-get-path.html">Next</a></td></tr></table><hr></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="idp1108175388"></a>Kernel objects manipulation</h2></div></div></div><div class="toc"><dl class="toc"><dt><span class="refentrytitle"><a href="API-kobject-get-path.html"><span class="phrase">kobject_get_path</span></a></span><span class="refpurpose"> &#8212; 
2  generate and return the path associated with a given kobj and kset pair.
3 </span></dt><dt><span class="refentrytitle"><a href="API-kobject-set-name.html"><span class="phrase">kobject_set_name</span></a></span><span class="refpurpose"> &#8212; 
4     Set the name of a kobject
5 </span></dt><dt><span class="refentrytitle"><a href="API-kobject-init.html"><span class="phrase">kobject_init</span></a></span><span class="refpurpose"> &#8212; 
6     initialize a kobject structure
7 </span></dt><dt><span class="refentrytitle"><a href="API-kobject-add.html"><span class="phrase">kobject_add</span></a></span><span class="refpurpose"> &#8212; 
8     the main kobject add function
9 </span></dt><dt><span class="refentrytitle"><a href="API-kobject-init-and-add.html"><span class="phrase">kobject_init_and_add</span></a></span><span class="refpurpose"> &#8212; 
10     initialize a kobject structure and add it to the kobject hierarchy
11 </span></dt><dt><span class="refentrytitle"><a href="API-kobject-rename.html"><span class="phrase">kobject_rename</span></a></span><span class="refpurpose"> &#8212; 
12     change the name of an object
13 </span></dt><dt><span class="refentrytitle"><a href="API-kobject-del.html"><span class="phrase">kobject_del</span></a></span><span class="refpurpose"> &#8212; 
14     unlink kobject from hierarchy.
15 </span></dt><dt><span class="refentrytitle"><a href="API-kobject-get.html"><span class="phrase">kobject_get</span></a></span><span class="refpurpose"> &#8212; 
16     increment refcount for object.
17 </span></dt><dt><span class="refentrytitle"><a href="API-kobject-put.html"><span class="phrase">kobject_put</span></a></span><span class="refpurpose"> &#8212; 
18     decrement refcount for object.
19 </span></dt><dt><span class="refentrytitle"><a href="API-kobject-create-and-add.html"><span class="phrase">kobject_create_and_add</span></a></span><span class="refpurpose"> &#8212; 
20     create a struct kobject dynamically and register it with sysfs
21 </span></dt><dt><span class="refentrytitle"><a href="API-kset-register.html"><span class="phrase">kset_register</span></a></span><span class="refpurpose"> &#8212; 
22     initialize and add a kset.
23 </span></dt><dt><span class="refentrytitle"><a href="API-kset-unregister.html"><span class="phrase">kset_unregister</span></a></span><span class="refpurpose"> &#8212; 
24     remove a kset.
25 </span></dt><dt><span class="refentrytitle"><a href="API-kset-create-and-add.html"><span class="phrase">kset_create_and_add</span></a></span><span class="refpurpose"> &#8212; 
26     create a struct kset dynamically and add it to sysfs
27 </span></dt></dl></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-flush-kthread-worker.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="Basics.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-kobject-get-path.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">flush_kthread_worker</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span class="phrase">kobject_get_path</span></td></tr></table></div></body></html>
28