class_simple_create — create a struct class_simple structure
struct class_simple * class_simple_create ( | struct module * | owner, |
char * | name) ; |
owner
pointer to the module that is to “own” this struct class_simple
name
pointer to a string for the name of this class.
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
.