centos man page for __class_create

Query: __class_create

OS: centos

Section: 9

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

__CLASS_CREATE(9)					   Device drivers infrastructure					 __CLASS_CREATE(9)

NAME
__class_create - create a struct class structure
SYNOPSIS
struct class * __class_create(struct module * owner, const char * name, struct lock_class_key * key);
ARGUMENTS
owner pointer to the module that is to "own" this struct class name pointer to a string for the name of this class. key the lock_class_key for this class; used by mutex lock debugging
DESCRIPTION
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.
COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 __CLASS_CREATE(9)
Related Man Pages
device_create_with_groups(9) - centos
securityfs_create_file(9) - centos
smigetnextclass(3) - debian
smigetparentclass(3) - debian
__gnu_pbds(3) - centos
Similar Topics in the Unix Linux Community
restricting access...
Query about creating sysfs directory under device driver
About uncopyable class (on book:Effective C++)
Get pointer for existing device class (struct class) in Linux kernel module