Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/conf Reserve DTrace sdt and fdt major numbers
details: https://anonhg.NetBSD.org/src/rev/226371794b8b
branches: trunk
changeset: 997485:226371794b8b
user: kamil <kamil%NetBSD.org@localhost>
date: Sat Mar 09 18:53:52 2019 +0000
description:
Reserve DTrace sdt and fdt major numbers
Register cmajor 252 for fbt and 253 for sdt.
Previously the major number was picked randomly and it causes conflicts
with preallocated values for different devices.
diffstat:
external/cddl/osnet/dev/fbt/fbt.c | 4 ++--
external/cddl/osnet/dev/sdt/sdt.c | 4 ++--
sys/conf/majors | 4 +++-
3 files changed, 7 insertions(+), 5 deletions(-)
diffs (54 lines):
diff -r 07d044b7bdc4 -r 226371794b8b external/cddl/osnet/dev/fbt/fbt.c
--- a/external/cddl/osnet/dev/fbt/fbt.c Sat Mar 09 18:38:34 2019 +0000
+++ b/external/cddl/osnet/dev/fbt/fbt.c Sat Mar 09 18:53:52 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fbt.c,v 1.25 2019/01/27 02:08:34 pgoyette Exp $ */
+/* $NetBSD: fbt.c,v 1.26 2019/03/09 18:53:52 kamil Exp $ */
/*
* CDDL HEADER START
@@ -1316,7 +1316,7 @@
static int
dtrace_fbt_modcmd(modcmd_t cmd, void *data)
{
- int bmajor = -1, cmajor = -1;
+ int bmajor = -1, cmajor = 352;
int error;
switch (cmd) {
diff -r 07d044b7bdc4 -r 226371794b8b external/cddl/osnet/dev/sdt/sdt.c
--- a/external/cddl/osnet/dev/sdt/sdt.c Sat Mar 09 18:38:34 2019 +0000
+++ b/external/cddl/osnet/dev/sdt/sdt.c Sat Mar 09 18:53:52 2019 +0000
@@ -39,7 +39,7 @@
* unloaded; in particular, probes may not span multiple kernel modules.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sdt.c,v 1.19 2018/05/28 21:05:03 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdt.c,v 1.20 2019/03/09 18:53:52 kamil Exp $");
#include <sys/cdefs.h>
#include <sys/proc.h>
@@ -550,7 +550,7 @@
static int
dtrace_sdt_modcmd(modcmd_t cmd, void *data)
{
- int bmajor = -1, cmajor = -1;
+ int bmajor = -1, cmajor = 353;
int error;
switch (cmd) {
diff -r 07d044b7bdc4 -r 226371794b8b sys/conf/majors
--- a/sys/conf/majors Sat Mar 09 18:38:34 2019 +0000
+++ b/sys/conf/majors Sat Mar 09 18:53:52 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: majors,v 1.83 2019/02/23 12:25:33 kamil Exp $
+# $NetBSD: majors,v 1.84 2019/03/09 18:53:52 kamil Exp $
#
# Device majors for Machine-Independent drivers.
#
@@ -83,3 +83,5 @@
device-major spi char 347 spi
# Majors 348-350 are reserved for HAXM (pkgsrc/emulators/haxm)
# Major 351 is reserved for sys/modules/examples
+# Major 352 is reserved for external/cddl/osnet/dev/fbt/fbt.c
+# Major 353 is reserved for external/cddl/osnet/dev/sdt/sdt.c
Home |
Main Index |
Thread Index |
Old Index