subr_prf.c (c999e3481d936980354d09e3d6a138e5dde5fabc) subr_prf.c (c84c5e00ac28c8e00a56019031d1eaec74428b54)
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1986, 1988, 1991, 1993
5 * The Regents of the University of California. All rights reserved.
6 * (c) UNIX System Laboratories, Inc.
7 * All or some portions of this file are derived from material licensed
8 * to the University of California by American Telephone and Telegraph

--- 1113 unchanged lines hidden (view full) ---

1122
1123SYSCTL_PROC(_kern, OID_AUTO, msgbuf_clear,
1124 CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_SECURE | CTLFLAG_MPSAFE,
1125 &msgbuf_clearflag, 0, sysctl_kern_msgbuf_clear, "I",
1126 "Clear kernel message buffer");
1127
1128#ifdef DDB
1129
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1986, 1988, 1991, 1993
5 * The Regents of the University of California. All rights reserved.
6 * (c) UNIX System Laboratories, Inc.
7 * All or some portions of this file are derived from material licensed
8 * to the University of California by American Telephone and Telegraph

--- 1113 unchanged lines hidden (view full) ---

1122
1123SYSCTL_PROC(_kern, OID_AUTO, msgbuf_clear,
1124 CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_SECURE | CTLFLAG_MPSAFE,
1125 &msgbuf_clearflag, 0, sysctl_kern_msgbuf_clear, "I",
1126 "Clear kernel message buffer");
1127
1128#ifdef DDB
1129
1130DB_SHOW_COMMAND(msgbuf, db_show_msgbuf)
1130DB_SHOW_COMMAND_FLAGS(msgbuf, db_show_msgbuf, DB_CMD_MEMSAFE)
1131{
1132 int i, j;
1133
1134 if (!msgbufmapped) {
1135 db_printf("msgbuf not mapped yet\n");
1136 return;
1137 }
1138 db_printf("msgbufp = %p\n", msgbufp);

--- 196 unchanged lines hidden ---
1131{
1132 int i, j;
1133
1134 if (!msgbufmapped) {
1135 db_printf("msgbuf not mapped yet\n");
1136 return;
1137 }
1138 db_printf("msgbufp = %p\n", msgbufp);

--- 196 unchanged lines hidden ---