kobject_create_and_add(9)

kobject_create_and_add9

Create a struct kobject dynamically and register it with sysfs

Usage

struct kobject * kobject_create_and_add(const char * name, struct kobject * parent);

Arguments

name

the name for the kobject

parent

the parent kobject of this kobject, if any.

Overview

This function creates a kobject structure dynamically and registers it with sysfs. When you are finished with this structure, call kobject_put and the structure will be dynamically freed when it is no longer being used.

If the kobject was not able to be created, NULL will be returned.

Releases

4 releases since Debian 5.0 (Lenny); the text changed 3 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.