Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys Add a do-nothing child-detachment hook, null_childdetach...



details:   https://anonhg.NetBSD.org/src/rev/6f9c88962d11
branches:  trunk
changeset: 750595:6f9c88962d11
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Thu Jan 07 22:39:52 2010 +0000

description:
Add a do-nothing child-detachment hook, null_childdetached(device_t,
device_t).

diffstat:

 sys/kern/subr_autoconf.c |  10 ++++++++--
 sys/sys/device.h         |   4 +++-
 2 files changed, 11 insertions(+), 3 deletions(-)

diffs (49 lines):

diff -r 7b363b04c364 -r 6f9c88962d11 sys/kern/subr_autoconf.c
--- a/sys/kern/subr_autoconf.c  Thu Jan 07 21:26:49 2010 +0000
+++ b/sys/kern/subr_autoconf.c  Thu Jan 07 22:39:52 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_autoconf.c,v 1.191 2010/01/05 22:42:16 dyoung Exp $ */
+/* $NetBSD: subr_autoconf.c,v 1.192 2010/01/07 22:39:52 dyoung 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.191 2010/01/05 22:42:16 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.192 2010/01/07 22:39:52 dyoung Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -2722,6 +2722,12 @@
        config_alldevs_unlock(s);
 }
 
+void
+null_childdetached(device_t self, device_t child)
+{
+       /* do nothing */
+}
+
 static void
 sysctl_detach_setup(struct sysctllog **clog)
 {
diff -r 7b363b04c364 -r 6f9c88962d11 sys/sys/device.h
--- a/sys/sys/device.h  Thu Jan 07 21:26:49 2010 +0000
+++ b/sys/sys/device.h  Thu Jan 07 22:39:52 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: device.h,v 1.128 2009/12/15 03:02:25 dyoung Exp $ */
+/* $NetBSD: device.h,v 1.129 2010/01/07 22:39:52 dyoung Exp $ */
 
 /*
  * Copyright (c) 1996, 2000 Christopher G. Demetriou
@@ -479,6 +479,8 @@
 void   config_twiddle_init(void);
 void   config_twiddle_fn(void *);
 
+void   null_childdetached(device_t, device_t);
+
 device_t       device_lookup(cfdriver_t, int);
 void           *device_lookup_private(cfdriver_t, int);
 #ifdef __HAVE_DEVICE_REGISTER



Home | Main Index | Thread Index | Old Index