Page MenuHomeFreeBSD

D56575.1795360984.diff
No OneTemporary

Authored By
Unknown
Size
954 B
Referenced Files
None
Subscribers
None

D56575.1795360984.diff

diff --git a/sys/compat/linuxkpi/common/include/linux/kernel.h b/sys/compat/linuxkpi/common/include/linux/kernel.h
--- a/sys/compat/linuxkpi/common/include/linux/kernel.h
+++ b/sys/compat/linuxkpi/common/include/linux/kernel.h
@@ -384,4 +384,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_ */
diff --git a/sys/compat/linuxkpi/common/src/linux_compat.c b/sys/compat/linuxkpi/common/src/linux_compat.c
--- a/sys/compat/linuxkpi/common/src/linux_compat.c
+++ b/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

Mime Type
text/plain
Expires
Sun, Nov 22, 3:23 PM (2 m, 56 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41865829
Default Alt Text
D56575.1795360984.diff (954 B)

Event Timeline