Source-Changes-HG archive

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

[src/thorpej-i2c-spi-conf]: src/sys Expose devhandle_lookup_device_call(), wh...



details:   https://anonhg.NetBSD.org/src/rev/14d435b38058
branches:  thorpej-i2c-spi-conf
changeset: 1020810:14d435b38058
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat May 15 00:32:40 2021 +0000

description:
Expose devhandle_lookup_device_call(), which can be useful when
"sub-classing" a devhandle implementation.

diffstat:

 sys/kern/subr_device.c |  6 +++---
 sys/sys/device.h       |  4 +++-
 2 files changed, 6 insertions(+), 4 deletions(-)

diffs (45 lines):

diff -r 2f7bfccc04bd -r 14d435b38058 sys/kern/subr_device.c
--- a/sys/kern/subr_device.c    Fri May 14 22:46:36 2021 +0000
+++ b/sys/kern/subr_device.c    Sat May 15 00:32:40 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_device.c,v 1.7 2021/02/06 05:33:20 thorpej Exp $  */
+/*     $NetBSD: subr_device.c,v 1.7.4.1 2021/05/15 00:32:40 thorpej Exp $      */
 
 /*
  * Copyright (c) 2006, 2021 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_device.c,v 1.7 2021/02/06 05:33:20 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_device.c,v 1.7.4.1 2021/05/15 00:32:40 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -72,7 +72,7 @@
        return handle.impl->type;
 }
 
-static device_call_t
+device_call_t
 devhandle_lookup_device_call(devhandle_t handle, const char *name,
     devhandle_t *call_handlep)
 {
diff -r 2f7bfccc04bd -r 14d435b38058 sys/sys/device.h
--- a/sys/sys/device.h  Fri May 14 22:46:36 2021 +0000
+++ b/sys/sys/device.h  Sat May 15 00:32:40 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: device.h,v 1.168.2.1 2021/05/13 00:47:33 thorpej Exp $ */
+/* $NetBSD: device.h,v 1.168.2.2 2021/05/15 00:32:41 thorpej Exp $ */
 
 /*
  * Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -656,6 +656,8 @@
 void           devhandle_invalidate(devhandle_t *);
 devhandle_type_t devhandle_type(devhandle_t);
 
+device_call_t  devhandle_lookup_device_call(devhandle_t, const char *,
+                   devhandle_t *);
 void           devhandle_impl_inherit(struct devhandle_impl *,
                    const struct devhandle_impl *);
 



Home | Main Index | Thread Index | Old Index