Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/kern_shutdown.c
Show First 20 Lines • Show All 146 Lines • ▼ Show 20 Lines | static SYSCTL_NODE(_kern, OID_AUTO, shutdown, CTLFLAG_RW, 0, | ||||
"Shutdown environment"); | "Shutdown environment"); | ||||
#ifndef DIAGNOSTIC | #ifndef DIAGNOSTIC | ||||
static int show_busybufs; | static int show_busybufs; | ||||
#else | #else | ||||
static int show_busybufs = 1; | static int show_busybufs = 1; | ||||
#endif | #endif | ||||
SYSCTL_INT(_kern_shutdown, OID_AUTO, show_busybufs, CTLFLAG_RW, | SYSCTL_INT(_kern_shutdown, OID_AUTO, show_busybufs, CTLFLAG_RW, | ||||
&show_busybufs, 0, ""); | &show_busybufs, 0, | ||||
"Print busy buffers during shutdown"); | |||||
int suspend_blocked = 0; | int suspend_blocked = 0; | ||||
SYSCTL_INT(_kern, OID_AUTO, suspend_blocked, CTLFLAG_RW, | SYSCTL_INT(_kern, OID_AUTO, suspend_blocked, CTLFLAG_RW, | ||||
&suspend_blocked, 0, "Block suspend due to a pending shutdown"); | &suspend_blocked, 0, | ||||
"Block suspend due to a pending shutdown"); | |||||
#ifdef EKCD | #ifdef EKCD | ||||
FEATURE(ekcd, "Encrypted kernel crash dumps support"); | FEATURE(ekcd, "Encrypted kernel crash dumps support"); | ||||
MALLOC_DEFINE(M_EKCD, "ekcd", "Encrypted kernel crash dumps data"); | MALLOC_DEFINE(M_EKCD, "ekcd", "Encrypted kernel crash dumps data"); | ||||
struct kerneldumpcrypto { | struct kerneldumpcrypto { | ||||
uint8_t kdc_encryption; | uint8_t kdc_encryption; | ||||
▲ Show 20 Lines • Show All 1,312 Lines • Show Last 20 Lines |