Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/dev/lib/libpad create /dev/pad[0-3] instead of just...
details: https://anonhg.NetBSD.org/src/rev/dd4b07ebd49e
branches: trunk
changeset: 785876:dd4b07ebd49e
user: pooka <pooka%NetBSD.org@localhost>
date: Thu Apr 04 11:28:02 2013 +0000
description:
create /dev/pad[0-3] instead of just /dev/pad
diffstat:
sys/rump/dev/lib/libpad/component.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r cc4cf0b24152 -r dd4b07ebd49e sys/rump/dev/lib/libpad/component.c
--- a/sys/rump/dev/lib/libpad/component.c Thu Apr 04 11:21:37 2013 +0000
+++ b/sys/rump/dev/lib/libpad/component.c Thu Apr 04 11:28:02 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: component.c,v 1.1 2013/04/04 01:41:51 pooka Exp $ */
+/* $NetBSD: component.c,v 1.2 2013/04/04 11:28:02 pooka Exp $ */
/*-
* Copyright (c) 2010 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: component.c,v 1.1 2013/04/04 01:41:51 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: component.c,v 1.2 2013/04/04 11:28:02 pooka Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -40,6 +40,7 @@
{
int error;
- if ((error = rump_vfs_makeonedevnode(S_IFCHR, "/dev/pad", 189, 0)) != 0)
+ if ((error = rump_vfs_makedevnodes(S_IFCHR,
+ "/dev/pad", '0', 189, 0, 4)) != 0)
panic("cannot create pad device: %d", error);
}
Home |
Main Index |
Thread Index |
Old Index