• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #pragma once
2 
3 enum module_state
4 {
5 	MODULE_STATE_LIVE,
6 	MODULE_STATE_COMING,
7 	MODULE_STATE_GOING,
8 };
9 
10 struct list_head {
11 	struct list_head *next, *prev;
12 };
13 
14 #define MODULE_NAME_LEN (64 - sizeof(unsigned long))
15 
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 /*                                padding */
28 #define MODULE_NAME_OFFSET_64 4 + 4           + 2 * 8
29 #define MODULE_NAME_OFFSET_32 4 + 2 * 4
30