Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/tty_info.c
Show First 20 Lines • Show All 233 Lines • ▼ Show 20 Lines | if (tp != NULL && !KERNEL_PANICKED()) { | ||||
if (rc != 0) | if (rc != 0) | ||||
return (-ENXIO); | return (-ENXIO); | ||||
return (len); | return (len); | ||||
} | } | ||||
return (-ENXIO); | return (-ENXIO); | ||||
} | } | ||||
#ifdef STACK | #ifdef STACK | ||||
#ifdef INVARIANTS | |||||
static int tty_info_kstacks = STACK_SBUF_FMT_COMPACT; | static int tty_info_kstacks = STACK_SBUF_FMT_COMPACT; | ||||
#else | |||||
static int tty_info_kstacks = STACK_SBUF_FMT_NONE; | |||||
#endif | |||||
static int | static int | ||||
sysctl_tty_info_kstacks(SYSCTL_HANDLER_ARGS) | sysctl_tty_info_kstacks(SYSCTL_HANDLER_ARGS) | ||||
{ | { | ||||
enum stack_sbuf_fmt val; | enum stack_sbuf_fmt val; | ||||
int error; | int error; | ||||
val = tty_info_kstacks; | val = tty_info_kstacks; | ||||
▲ Show 20 Lines • Show All 156 Lines • Show Last 20 Lines |