Messages in this thread Patch in this message |  | | | From | Nigel Cunningham <> | | Subject | [Suspend2][ 13/13] [Suspend2] Storage manager header file. | | Date | Tue, 27 Jun 2006 14:41:09 +1000 |
| |
The header file for the storage manager, which defines the message numbers used by it, and the functions accessible via proc entries.
Signed-off-by: Nigel Cunningham <nigel@suspend2.net>
kernel/power/storage.h | 37 +++++++++++++++++++++++++++++++++++++ 1 files changed, 37 insertions(+), 0 deletions(-) diff --git a/kernel/power/storage.h b/kernel/power/storage.h new file mode 100644 index 0000000..9039dcc --- /dev/null +++ b/kernel/power/storage.h @@ -0,0 +1,37 @@ +/* + * kernel/power/storage.h + * + * Copyright (C) 2005-2006 Nigel Cunningham <nigel@suspend2.net> + * + * This file is released under the GPLv2. + */ + +int suspend_prepare_usm(void); +void suspend_cleanup_usm(void); + +#ifdef CONFIG_NET +int suspend_activate_storage(int force); +int suspend_deactivate_storage(int force); +#else +static inline int suspend_activate_storage(int force) +{ + return 0; +} + +static inline int suspend_deactivate_storage(int force) +{ + return 0; +} +#endif + +enum { + USM_MSG_BASE = 0x10, + + /* Kernel -> Userspace */ + USM_MSG_CONNECT = 0x30, + USM_MSG_DISCONNECT = 0x31, + USM_MSG_SUCCESS = 0x40, + USM_MSG_FAILED = 0x41, + + USM_MSG_MAX, +}; -- Nigel Cunningham nigel at suspend2 dot net - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |