<?xml version="1.0" encoding="ANSI_X3.4-1968" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><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.75.2" /><link rel="home" href="index.html" title="Linux Device Drivers" /><link rel="up" href="ch01.html" title="Chapter 1. Driver Basics" /><link rel="prev" href="re115.html" title="kthread_stop" /><link rel="next" href="re116.html" title="kobject_get_path" /></head><body><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="re115.html">Prev</a> </td><th width="60%" align="center">Chapter 1. Driver Basics</th><td width="20%" align="right"> <a accesskey="n" href="re116.html">Next</a></td></tr></table><hr /></div><div class="sect1" title="Kernel objects manipulation"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="id2609745"></a>Kernel objects manipulation</h2></div></div></div><div class="toc"><dl><dt><span class="refentrytitle"><a href="re116.html"><span>kobject_get_path</span></a></span><span class="refpurpose"> — generate and return the path associated with a given kobj and kset pair. </span></dt><dt><span class="refentrytitle"><a href="re117.html"><span>kobject_set_name</span></a></span><span class="refpurpose"> — Set the name of a kobject </span></dt><dt><span class="refentrytitle"><a href="re118.html"><span>kobject_init</span></a></span><span class="refpurpose"> — initialize a kobject structure </span></dt><dt><span class="refentrytitle"><a href="re119.html"><span>kobject_add</span></a></span><span class="refpurpose"> — the main kobject add function </span></dt><dt><span class="refentrytitle"><a href="re120.html"><span>kobject_init_and_add</span></a></span><span class="refpurpose"> — initialize a kobject structure and add it to the kobject hierarchy </span></dt><dt><span class="refentrytitle"><a href="re121.html"><span>kobject_rename</span></a></span><span class="refpurpose"> — change the name of an object </span></dt><dt><span class="refentrytitle"><a href="re122.html"><span>kobject_del</span></a></span><span class="refpurpose"> — unlink kobject from hierarchy. </span></dt><dt><span class="refentrytitle"><a href="re123.html"><span>kobject_get</span></a></span><span class="refpurpose"> — increment refcount for object. </span></dt><dt><span class="refentrytitle"><a href="re124.html"><span>kobject_put</span></a></span><span class="refpurpose"> — decrement refcount for object. </span></dt><dt><span class="refentrytitle"><a href="re125.html"><span>kobject_create_and_add</span></a></span><span class="refpurpose"> — create a struct kobject dynamically and register it with sysfs </span></dt><dt><span class="refentrytitle"><a href="re126.html"><span>kset_register</span></a></span><span class="refpurpose"> — initialize and add a kset. </span></dt><dt><span class="refentrytitle"><a href="re127.html"><span>kset_unregister</span></a></span><span class="refpurpose"> — remove a kset. </span></dt><dt><span class="refentrytitle"><a href="re128.html"><span>kset_create_and_add</span></a></span><span class="refpurpose"> — create a struct kset dynamically and add it to sysfs </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="re115.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch01.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="re116.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span>kthread_stop</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span>kobject_get_path</span></td></tr></table></div></body></html>