summaryrefslogtreecommitdiff
path: root/sys/arch/kbus
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2000-09-26 14:03:56 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2000-09-26 14:03:56 +0000
commit3cfa686a50030503dc2ff2f9a0111c54b9561795 (patch)
tree55a18b8eae8a4dda03700a902224aadc50ecbe3f /sys/arch/kbus
parenta4ba45aa8ff49696e29a6ed776ac4323979b6a0b (diff)
Implement getnulldev that returns the dev_t for "/dev/null".
Diffstat (limited to 'sys/arch/kbus')
-rw-r--r--sys/arch/kbus/kbus/conf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/arch/kbus/kbus/conf.c b/sys/arch/kbus/kbus/conf.c
index 859b9a41e8d..7404e9c5fea 100644
--- a/sys/arch/kbus/kbus/conf.c
+++ b/sys/arch/kbus/kbus/conf.c
@@ -283,6 +283,12 @@ iszerodev(dev)
return (major(dev) == mem_no && minor(dev) == 12);
}
+dev_t
+getnulldev()
+{
+ return makedev(mem_no, 2);
+}
+
static int chrtoblktbl[] = {
/* XXXX This needs to be dynamic for LKMs. */
/*VCHR*/ /*VBLK*/