class_create(9)

class_create9

Create a struct class structure

Usage

struct class * class_create(struct module * owner, const char * name);

Arguments

owner

pointer to the module that is to “own” this struct class

name

pointer to a string for the name of this class.

Overview

This is used to create a struct class pointer that can then be used in calls to device_create.

Note, the pointer created here is to be destroyed when finished by making a call to class_destroy.

Releases

2 releases since Debian 4.0 (Etch); the text changed 1 time.

  1. 4.0
  2. 5.0

From linux-manual-2.6.26 2.6.26-29 in Debian 5.0 (Lenny). Parsed by carta from the page's man source.