source: sbliveos2/trunk/include/linux/module.h@ 174

Last change on this file since 174 was 142, checked in by ktk, 25 years ago

Import

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