summaryrefslogtreecommitdiff
path: root/sys/dev/ramdisk.c
diff options
context:
space:
mode:
authorleo <leo@NetBSD.org>1996-03-07 10:25:28 +0000
committerleo <leo@NetBSD.org>1996-03-07 10:25:28 +0000
commit6da2ce259cdee088aad1c90d3d1811fd234f191a (patch)
treea826b6f7e9468d73c1b6c01ff5b840a2590c149f /sys/dev/ramdisk.c
parent5dcce59678ce2ff58675b66710447dcb1bb84c48 (diff)
Allow for a machine dependent match function - rd_match_hook()
Diffstat (limited to 'sys/dev/ramdisk.c')
-rw-r--r--sys/dev/ramdisk.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/ramdisk.c b/sys/dev/ramdisk.c
index 38108098551..d788f49770b 100644
--- a/sys/dev/ramdisk.c
+++ b/sys/dev/ramdisk.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ramdisk.c,v 1.4 1996/01/07 22:03:31 thorpej Exp $ */
+/* $NetBSD: ramdisk.c,v 1.5 1996/03/07 10:26:29 leo Exp $ */
/*
* Copyright (c) 1995 Gordon W. Ross, Leo Weppelman.
@@ -117,7 +117,15 @@ rd_match(parent, self, aux)
void *self;
void *aux;
{
+#ifdef RAMDISK_HOOKS
+ /*
+ * This external function allows for a machine dependent
+ * match function.
+ */
+ return (rd_match_hook(parent, self, aux));
+#else
return(1);
+#endif
}
static void