]> git.ipfire.org Git - thirdparty/kmod.git/blob - testsuite/stripped-module.h
testsuite: create additional pipe to monitor child
[thirdparty/kmod.git] / testsuite / stripped-module.h
1 #ifndef _TESTSUITE_STRIPPED_MODULE_H
2 #define _TESTSUITE_STRIPPED_MODULE_H
3
4 enum module_state
5 {
6 MODULE_STATE_LIVE,
7 MODULE_STATE_COMING,
8 MODULE_STATE_GOING,
9 };
10
11 struct list_head {
12 struct list_head *next, *prev;
13 };
14
15 #define MODULE_NAME_LEN (64 - sizeof(unsigned long))
16 struct module
17 {
18 enum module_state state;
19
20 /* Member of list of modules */
21 struct list_head list;
22
23 /* Unique handle for this module */
24 char name[MODULE_NAME_LEN];
25 };
26
27 #endif