__CLASS_CREATE(9) Device drivers infrastructure __CLASS_CREATE(9)NAME__class_create - create a struct class structure
struct class * __class_create(struct module * owner, const char * name,
struct lock_class_key * key);
pointer to the module that is to “own” this struct class
pointer to a string for the name of this class.
the lock_class_key for this class; used by mutex lock debugging
This is used to create a struct class pointer that can then be used in
calls to device_create.
Returns struct class pointer on success, or ERR_PTR on error.
Note, the pointer created here is to be destroyed when finished by
making a call to class_destroy.
COPYRIGHTKernel Hackers Manual 3.8. June 2014 __CLASS_CREATE(9)