blob: 83986b2c44b373fdda71d76f93d8ae407352ac2f [file] [log] [blame]
Lucas De Marchie8fd8fe2012-07-18 10:19:48 -03001#pragma once
Lucas De Marchi53646fc2012-01-26 02:09:28 -02002
3enum module_state
4{
5 MODULE_STATE_LIVE,
6 MODULE_STATE_COMING,
7 MODULE_STATE_GOING,
8};
9
10struct list_head {
11 struct list_head *next, *prev;
12};
13
14#define MODULE_NAME_LEN (64 - sizeof(unsigned long))
Lucas De Marchifca5b9b2012-06-21 11:30:56 -030015
Lucas De Marchi53646fc2012-01-26 02:09:28 -020016struct 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
Lucas De Marchifca5b9b2012-06-21 11:30:56 -030027/* padding */
28#define MODULE_NAME_OFFSET_64 4 + 4 + 2 * 8
29#define MODULE_NAME_OFFSET_32 4 + 2 * 4