source: GPL/include/linux/module.h@ 1

Last change on this file since 1 was 1, checked in by vladest, 20 years ago

initial import

File size: 1.4 KB
Line 
1/*
2 * Dynamic loading of modules into the kernel.
3 *
4 * Rewritten by Richard Henderson <rth@tamu.edu> Dec 1996
5 */
6
7#ifndef _LINUX_MODULE_H
8#define _LINUX_MODULE_H
9
10/* Poke the use count of a module. */
11
12#define MOD_INC_USE_COUNT
13#define MOD_DEC_USE_COUNT
14#define MOD_IN_USE
15
16#define EXPORT_NO_SYMBOLS
17
18#define __MODULE_STRING_1(x) #x
19#define __MODULE_STRING(x) __MODULE_STRING_1(x)
20
21/* For documentation purposes only. */
22
23#define MODULE_AUTHOR(name)
24
25#define MODULE_DESCRIPTION(desc)
26
27/* Could potentially be used by kmod... */
28
29#define MODULE_SUPPORTED_DEVICE(dev)
30
31/* Used to verify parameters given to the module. The TYPE arg should
32 be a string in the following format:
33 [min[-max]]{b,h,i,l,s}
34 The MIN and MAX specifiers delimit the length of the array. If MAX
35 is omitted, it defaults to MIN; if both are omitted, the default is 1.
36 The final character is a type specifier:
37 b byte
38 h short
39 i int
40 l long
41 s string
42*/
43
44#ifdef TARGET_OS2
45#define MODULE_PARM(var,type)
46#define MODULE_PARM_DESC(var,desc)
47#define MODULE_LICENSE(a)
48#else
49#define MODULE_PARM(var,type) \
50const char __module_parm_##var[]= \
51"parm_" __MODULE_STRING(var) "=" type
52
53#define MODULE_PARM_DESC(var,desc) \
54const char __module_parm_desc_##var[]= \
55"parm_desc_" __MODULE_STRING(var) "=" desc
56#endif
57
58#endif /* _LINUX_MODULE_H */
Note: See TracBrowser for help on using the repository browser.