Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/subr_prf.c
Show First 20 Lines • Show All 1,043 Lines • ▼ Show 20 Lines | msgbufinit(void *ptr, int size) | ||||
if (!msgbufmapped) | if (!msgbufmapped) | ||||
TUNABLE_STR_FETCH("kern.boot_tag", current_boot_tag, | TUNABLE_STR_FETCH("kern.boot_tag", current_boot_tag, | ||||
sizeof(current_boot_tag)); | sizeof(current_boot_tag)); | ||||
msgbufp = (struct msgbuf *)(cp + size); | msgbufp = (struct msgbuf *)(cp + size); | ||||
msgbuf_reinit(msgbufp, cp, size); | msgbuf_reinit(msgbufp, cp, size); | ||||
if (msgbufmapped && oldp != msgbufp) | if (msgbufmapped && oldp != msgbufp) | ||||
msgbuf_copy(oldp, msgbufp); | msgbuf_copy(oldp, msgbufp); | ||||
msgbufmapped = true; | msgbufmapped = true; | ||||
if (print_boot_tag && *current_boot_tag != '\0') | if (print_boot_tag && *current_boot_tag != '\0') { | ||||
if (vm_guest != VM_GUEST_HV) | |||||
printf("%s\n", current_boot_tag); | printf("%s\n", current_boot_tag); | ||||
} | |||||
oldp = msgbufp; | oldp = msgbufp; | ||||
} | } | ||||
/* Sysctls for accessing/clearing the msgbuf */ | /* Sysctls for accessing/clearing the msgbuf */ | ||||
static int | static int | ||||
sysctl_kern_msgbuf(SYSCTL_HANDLER_ARGS) | sysctl_kern_msgbuf(SYSCTL_HANDLER_ARGS) | ||||
{ | { | ||||
char buf[128], *bp; | char buf[128], *bp; | ||||
▲ Show 20 Lines • Show All 273 Lines • Show Last 20 Lines |