kobject_init_and_add(9)

kobject_init_and_add9

Initialize a kobject structure and add it to the kobject hierarchy

Usage

int kobject_init_and_add(struct kobject * kobj, struct kobj_type * ktype, struct kobject * parent, const char * fmt, ...);

Arguments

kobj

pointer to the kobject to initialize

ktype

pointer to the ktype for this kobject.

parent

pointer to the parent of this kobject.

fmt

the name of the kobject.

...

variable arguments

Overview

This function combines the call to kobject_init and kobject_add. The same type of error handling after a call to kobject_add and kobject lifetime rules are the same here.

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.