Name

class_simple_create — create a struct class_simple structure

Synopsis

struct class_simple * class_simple_create (struct module *  owner,
 char *  name);

Arguments

owner

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

name

pointer to a string for the name of this class.

Description

This is used to create a struct class_simple pointer that can then be used in calls to class_simple_device_add. This is used when you do not wish to create a full blown class support for a type of char devices.

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