Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-7]: src/sys/kern Pull up following revision(s) (requested by joer...
details: https://anonhg.NetBSD.org/src/rev/6c253dc066c3
branches: netbsd-7
changeset: 799705:6c253dc066c3
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Mon Nov 16 14:40:41 2015 +0000
description:
Pull up following revision(s) (requested by joerg in ticket #1030):
sys/kern/subr_autoconf.c: revision 1.236
Add the parent device (if present) to the device properties, making it
easier to identify devices in the tree with drvctl(8).
diffstat:
sys/kern/subr_autoconf.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r e4952cf19e33 -r 6c253dc066c3 sys/kern/subr_autoconf.c
--- a/sys/kern/subr_autoconf.c Mon Nov 16 14:38:03 2015 +0000
+++ b/sys/kern/subr_autoconf.c Mon Nov 16 14:40:41 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_autoconf.c,v 1.231.2.1 2015/03/09 08:56:01 snj Exp $ */
+/* $NetBSD: subr_autoconf.c,v 1.231.2.2 2015/11/16 14:40:41 msaitoh Exp $ */
/*
* Copyright (c) 1996, 2000 Christopher G. Demetriou
@@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.231.2.1 2015/03/09 08:56:01 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.231.2.2 2015/11/16 14:40:41 msaitoh Exp $");
#ifdef _KERNEL_OPT
#include "opt_ddb.h"
@@ -1434,6 +1434,10 @@
"device-driver", dev->dv_cfdriver->cd_name);
prop_dictionary_set_uint16(dev->dv_properties,
"device-unit", dev->dv_unit);
+ if (parent != NULL) {
+ prop_dictionary_set_cstring(dev->dv_properties,
+ "device-parent", device_xname(parent));
+ }
if (dev->dv_cfdriver->cd_attrs != NULL)
config_add_attrib_dict(dev);
Home |
Main Index |
Thread Index |
Old Index