Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177835993
D56575.1795395108.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
969 B
Referenced Files
None
Subscribers
None
D56575.1795395108.diff
View Options
Index: sys/compat/linuxkpi/common/include/linux/kernel.h
===================================================================
--- sys/compat/linuxkpi/common/include/linux/kernel.h
+++ sys/compat/linuxkpi/common/include/linux/kernel.h
@@ -379,4 +379,15 @@
#define non_block_start() do { } while (0)
#define non_block_end() do { } while (0)
+extern enum system_states {
+ SYSTEM_BOOTING,
+ SYSTEM_SCHEDULING,
+ SYSTEM_FREEING_INITMEM,
+ SYSTEM_RUNNING,
+ SYSTEM_HALT,
+ SYSTEM_POWER_OFF,
+ SYSTEM_RESTART,
+ SYSTEM_SUSPEND,
+} system_state;
+
#endif /* _LINUXKPI_LINUX_KERNEL_H_ */
Index: sys/compat/linuxkpi/common/src/linux_compat.c
===================================================================
--- sys/compat/linuxkpi/common/src/linux_compat.c
+++ sys/compat/linuxkpi/common/src/linux_compat.c
@@ -167,6 +167,8 @@
const guid_t guid_null;
+enum system_states system_state = SYSTEM_RUNNING;
+
int
panic_cmp(struct rb_node *one, struct rb_node *two)
{
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 23, 12:51 AM (9 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41905012
Default Alt Text
D56575.1795395108.diff (969 B)
Attached To
Mode
D56575: linuxkpi: Define `system_state`
Attached
Detach File
Event Timeline