Searched refs:kPanicStringMaxLen (Results 1 – 1 of 1) sorted by relevance
| /xnu-11417.121.6/bsd/kern/ |
| H A D | kern_xxx.c | 97 #define kPanicStringMaxLen 1024 macro 128 message = (char *)kalloc_data(kPanicStringMaxLen, Z_WAITOK | Z_ZERO); in reboot() 132 int copy_error = copyinstr(uap->msg, (void *)message, kPanicStringMaxLen, (size_t *)&dummy); in reboot() 134 strncpy(message, "user space RB_PANIC message copyin failed", kPanicStringMaxLen - 1); in reboot() 136 message[kPanicStringMaxLen - 1] = '\0'; in reboot() 158 kfree_data(message, kPanicStringMaxLen); in reboot() 186 message = (char *)kalloc_data(kPanicStringMaxLen, Z_WAITOK | Z_ZERO); in sys_panic_with_data() 190 int copy_error = copyinstr(uap->msg, (void *)message, kPanicStringMaxLen, (size_t *)&dummy); in sys_panic_with_data() 192 strlcpy(message, "user space panic_with_data message copyin failed", kPanicStringMaxLen - 1); in sys_panic_with_data() 194 message[kPanicStringMaxLen - 1] = '\0'; in sys_panic_with_data()
|