devfs_register_chrdev
Section: Kernel Hacker's Manual (9)
Updated: devfs_register_chrdev
Index
Return to Main Contents
NAME
devfs_register_chrdev - Optionally register a conventional character driver.
SYNOPSIS
int devfs_register_chrdev
(unsigned int major,
const char *name,
struct file_operations *fops);
ARGUMENTS
- major
-
The major number for the driver.
- name
-
The name of the driver (as seen in /proc/devices).
- fops
-
The file_operations structure pointer.
DESCRIPTION
This function will register a character driver provided the "devfs=only"
option was not provided at boot time.
Returns 0 on success, else a negative error code on failure.
Index
- NAME
-
- SYNOPSIS
-
- ARGUMENTS
-
- DESCRIPTION
-
This document was created by
man2html,
using the manual pages.
Time: 03:57:48 GMT, June 12, 2005