Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
miscdevice.h File Reference
#include <linux/major.h>
#include <linux/list.h>
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  miscdevice
 

Macros

#define PSMOUSE_MINOR   1
 
#define MS_BUSMOUSE_MINOR   2
 
#define ATIXL_BUSMOUSE_MINOR   3
 
#define ATARIMOUSE_MINOR   5
 
#define SUN_MOUSE_MINOR   6
 
#define APOLLO_MOUSE_MINOR   7
 
#define PC110PAD_MINOR   9
 
#define WATCHDOG_MINOR   130 /* Watchdog timer */
 
#define TEMP_MINOR   131 /* Temperature Sensor */
 
#define RTC_MINOR   135
 
#define EFI_RTC_MINOR   136 /* EFI Time services */
 
#define SUN_OPENPROM_MINOR   139
 
#define DMAPI_MINOR   140 /* DMAPI */
 
#define NVRAM_MINOR   144
 
#define SGI_MMTIMER   153
 
#define STORE_QUEUE_MINOR   155
 
#define I2O_MINOR   166
 
#define MICROCODE_MINOR   184
 
#define TUN_MINOR   200
 
#define MWAVE_MINOR   219 /* ACP/Mwave Modem */
 
#define MPT_MINOR   220
 
#define MPT2SAS_MINOR   221
 
#define UINPUT_MINOR   223
 
#define MISC_MCELOG_MINOR   227
 
#define HPET_MINOR   228
 
#define FUSE_MINOR   229
 
#define KVM_MINOR   232
 
#define BTRFS_MINOR   234
 
#define AUTOFS_MINOR   235
 
#define MAPPER_CTRL_MINOR   236
 
#define LOOP_CTRL_MINOR   237
 
#define VHOST_NET_MINOR   238
 
#define MISC_DYNAMIC_MINOR   255
 
#define MODULE_ALIAS_MISCDEV(minor)
 

Functions

int misc_register (struct miscdevice *misc)
 
int misc_deregister (struct miscdevice *misc)
 

Macro Definition Documentation

#define APOLLO_MOUSE_MINOR   7

Definition at line 19 of file miscdevice.h.

#define ATARIMOUSE_MINOR   5

Definition at line 17 of file miscdevice.h.

#define ATIXL_BUSMOUSE_MINOR   3

Definition at line 15 of file miscdevice.h.

#define AUTOFS_MINOR   235

Definition at line 43 of file miscdevice.h.

#define BTRFS_MINOR   234

Definition at line 42 of file miscdevice.h.

#define DMAPI_MINOR   140 /* DMAPI */

Definition at line 27 of file miscdevice.h.

#define EFI_RTC_MINOR   136 /* EFI Time services */

Definition at line 25 of file miscdevice.h.

#define FUSE_MINOR   229

Definition at line 40 of file miscdevice.h.

#define HPET_MINOR   228

Definition at line 39 of file miscdevice.h.

#define I2O_MINOR   166

Definition at line 31 of file miscdevice.h.

#define KVM_MINOR   232

Definition at line 41 of file miscdevice.h.

#define LOOP_CTRL_MINOR   237

Definition at line 45 of file miscdevice.h.

#define MAPPER_CTRL_MINOR   236

Definition at line 44 of file miscdevice.h.

#define MICROCODE_MINOR   184

Definition at line 32 of file miscdevice.h.

#define MISC_DYNAMIC_MINOR   255

Definition at line 47 of file miscdevice.h.

#define MISC_MCELOG_MINOR   227

Definition at line 38 of file miscdevice.h.

#define MODULE_ALIAS_MISCDEV (   minor)
Value:
"-" __stringify(minor))

Definition at line 65 of file miscdevice.h.

#define MPT2SAS_MINOR   221

Definition at line 36 of file miscdevice.h.

#define MPT_MINOR   220

Definition at line 35 of file miscdevice.h.

#define MS_BUSMOUSE_MINOR   2

Definition at line 14 of file miscdevice.h.

#define MWAVE_MINOR   219 /* ACP/Mwave Modem */

Definition at line 34 of file miscdevice.h.

#define NVRAM_MINOR   144

Definition at line 28 of file miscdevice.h.

#define PC110PAD_MINOR   9

Definition at line 20 of file miscdevice.h.

#define PSMOUSE_MINOR   1

Definition at line 13 of file miscdevice.h.

#define RTC_MINOR   135

Definition at line 24 of file miscdevice.h.

#define SGI_MMTIMER   153

Definition at line 29 of file miscdevice.h.

#define STORE_QUEUE_MINOR   155

Definition at line 30 of file miscdevice.h.

#define SUN_MOUSE_MINOR   6

Definition at line 18 of file miscdevice.h.

#define SUN_OPENPROM_MINOR   139

Definition at line 26 of file miscdevice.h.

#define TEMP_MINOR   131 /* Temperature Sensor */

Definition at line 23 of file miscdevice.h.

#define TUN_MINOR   200

Definition at line 33 of file miscdevice.h.

#define UINPUT_MINOR   223

Definition at line 37 of file miscdevice.h.

#define VHOST_NET_MINOR   238

Definition at line 46 of file miscdevice.h.

#define WATCHDOG_MINOR   130 /* Watchdog timer */

Definition at line 22 of file miscdevice.h.

Function Documentation

int misc_deregister ( struct miscdevice misc)

misc_deregister - unregister a miscellaneous device : device to unregister

Unregister a miscellaneous device that was previously successfully registered with misc_register(). Success is indicated by a zero return, a negative errno code indicates an error.

Definition at line 242 of file misc.c.

int misc_register ( struct miscdevice misc)

misc_register - register a miscellaneous device : device structure

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.

Definition at line 184 of file misc.c.