CLASS_DEVICE_CREATE

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

class_device_create - creates a class device and registers it with sysfs  

SYNOPSIS

"SYNOPSIS"

struct class_device * class_device_create (struct class * cls, dev_t devt, struct device * device, char * fmt, ...);  

ARGUMENTS

cls
-- undescribed --
devt
-- undescribed --
device
a pointer to a struct device that is assiociated with this class device.
fmt
string for the class device's name
...
variable arguments
 

DESCRIPTION

This function can be used by char device classes. A struct class_device will be created in sysfs, registered to the specified class. A ``dev'' file will be created, showing the dev_t for the device. The pointer to the struct class_device will be returned from the call. Any further sysfs files that might be required can be created using this pointer.  

NOTE

the struct class passed to this function must have previously been created with a call to class_create.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
NOTE

This document was created by man2html, using the manual pages.
Time: 00:02:00 GMT, October 09, 2005