Searched refs:kPanicStringMaxLen (Results 1 – 1 of 1) sorted by relevance
| /xnu-10002.41.9/bsd/kern/ |
| H A D | kern_xxx.c | 97 #define kPanicStringMaxLen 1024 macro 131 message = (char *)kalloc_data(kPanicStringMaxLen, Z_WAITOK | Z_ZERO); in reboot() 135 int copy_error = copyinstr(uap->msg, (void *)message, kPanicStringMaxLen, (size_t *)&dummy); in reboot() 137 strncpy(message, "user space RB_PANIC message copyin failed", kPanicStringMaxLen - 1); in reboot() 139 message[kPanicStringMaxLen - 1] = '\0'; in reboot() 163 kfree_data(message, kPanicStringMaxLen); in reboot() 189 message = (char *)kalloc_data(kPanicStringMaxLen, Z_WAITOK | Z_ZERO); in sys_panic_with_data() 193 int copy_error = copyinstr(uap->msg, (void *)message, kPanicStringMaxLen, (size_t *)&dummy); in sys_panic_with_data() 195 strlcpy(message, "user space panic_with_data message copyin failed", kPanicStringMaxLen - 1); in sys_panic_with_data() 197 message[kPanicStringMaxLen - 1] = '\0'; in sys_panic_with_data()
|