Module Name: src Committed By: pooka Date: Thu Apr 4 11:28:02 UTC 2013
Modified Files: src/sys/rump/dev/lib/libpad: component.c Log Message: create /dev/pad[0-3] instead of just /dev/pad To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/rump/dev/lib/libpad/component.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/rump/dev/lib/libpad/component.c diff -u src/sys/rump/dev/lib/libpad/component.c:1.1 src/sys/rump/dev/lib/libpad/component.c:1.2 --- src/sys/rump/dev/lib/libpad/component.c:1.1 Thu Apr 4 01:41:51 2013 +++ src/sys/rump/dev/lib/libpad/component.c Thu Apr 4 11:28:02 2013 @@ -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 @@ RUMP_COMPONENT(RUMP_COMPONENT_DEV) { 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); }