Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Export devhandle_lookup_device_call().
details: https://anonhg.NetBSD.org/src/rev/188b5dd54bd4
branches: trunk
changeset: 985074:188b5dd54bd4
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sat Aug 07 18:16:42 2021 +0000
description:
Export devhandle_lookup_device_call().
diffstat:
sys/kern/subr_device.c | 6 +++---
sys/sys/device.h | 4 +++-
2 files changed, 6 insertions(+), 4 deletions(-)
diffs (45 lines):
diff -r b257da96f2b4 -r 188b5dd54bd4 sys/kern/subr_device.c
--- a/sys/kern/subr_device.c Sat Aug 07 17:38:41 2021 +0000
+++ b/sys/kern/subr_device.c Sat Aug 07 18:16:42 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.8 2021/08/07 18:16:42 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.8 2021/08/07 18:16:42 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 b257da96f2b4 -r 188b5dd54bd4 sys/sys/device.h
--- a/sys/sys/device.h Sat Aug 07 17:38:41 2021 +0000
+++ b/sys/sys/device.h Sat Aug 07 18:16:42 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: device.h,v 1.172 2021/08/07 16:19:18 thorpej Exp $ */
+/* $NetBSD: device.h,v 1.173 2021/08/07 18:16:42 thorpej Exp $ */
/*
* Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -671,6 +671,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