kobject_init(9)

kobject_init9

Initialize a kobject structure

Usage

void kobject_init(struct kobject * kobj, struct kobj_type * ktype);

Arguments

kobj

pointer to the kobject to initialize

ktype

pointer to the ktype for this kobject.

Overview

This function will properly initialize a kobject such that it can then be passed to the kobject_add call.

After this function is called, the kobject MUST be cleaned up by a call to kobject_put, not by a call to kfree directly to ensure that all of the memory is cleaned up properly.

Releases

5 releases since Debian 4.0 (Etch); the text changed 4 times.

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

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