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 1. 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> </td><th width="60%" align="center">Chapter 1. Driver Basics</th><td width="20%" align="right"> <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"> — 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"> — 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"> — 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"> — 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"> — 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"> — 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"> — 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"> — 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"> — 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"> — 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"> — 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"> — 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"> — 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> </td><td width="20%" align="center"><a accesskey="u" href="Basics.html">Up</a></td><td width="40%" align="right"> <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> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">kobject_get_path</span></td></tr></table></div></body></html> 28