misc_register

Section: Kernel Hacker's Manual (9)
Updated: misc_register
Index Return to Main Contents
 

NAME

misc_register -        register a miscellaneous device
 

SYNOPSIS

int misc_register (struct miscdevice *misc);  

ARGUMENTS

misc

 device structure
 

DESCRIPTION

Register a miscellaneous device with the kernel. If the minor number is set to MISC_DYNAMIC_MINOR a minor number is assigned and placed in the minor field of the structure. For other cases the minor number requested is used.

The structure passed is linked into the kernel and may not be destroyed until it has been unregistered.

A zero is returned on success and a negative errno code for failure.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 03:54:34 GMT, June 12, 2005