Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/pgoyette-localcount]: src/sys/rump/dev/lib/libcgd The rump_cgd component...
details: https://anonhg.NetBSD.org/src/rev/cfcc6ee2a64f
branches: pgoyette-localcount
changeset: 852852:cfcc6ee2a64f
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Sat Jul 23 05:05:47 2016 +0000
description:
The rump_cgd component needs to do an early cdevsw_attact() to figure
out the device major numbers being used. But we then need to detach
the [bc]devsw's to allow them to get attached normally during module
initialization.
diffstat:
sys/rump/dev/lib/libcgd/cgd_component.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r 487552547aaf -r cfcc6ee2a64f sys/rump/dev/lib/libcgd/cgd_component.c
--- a/sys/rump/dev/lib/libcgd/cgd_component.c Sat Jul 23 05:01:09 2016 +0000
+++ b/sys/rump/dev/lib/libcgd/cgd_component.c Sat Jul 23 05:05:47 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cgd_component.c,v 1.2 2016/01/26 23:12:15 pooka Exp $ */
+/* $NetBSD: cgd_component.c,v 1.2.2.1 2016/07/23 05:05:47 pgoyette Exp $ */
/*
* Copyright (c) 2009 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cgd_component.c,v 1.2 2016/01/26 23:12:15 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cgd_component.c,v 1.2.2.1 2016/07/23 05:05:47 pgoyette Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -56,4 +56,5 @@
if ((error = rump_vfs_makedevnodes(S_IFCHR, "/dev/rcgd0", 'a',
cmaj, 0, 7)) != 0)
panic("cannot create raw cgd dev nodes: %d", error);
+ cdevsw_detach(&cgd_bdevsw, &cgd_cdevsw);
}
Home |
Main Index |
Thread Index |
Old Index