md.c (226966) | md.c (228449) |
---|---|
1/*- 2 * ---------------------------------------------------------------------------- 3 * "THE BEER-WARE LICENSE" (Revision 42): 4 * <phk@FreeBSD.ORG> wrote this file. As long as you retain this notice you 5 * can do whatever you want with this stuff. If we meet some day, and you think 6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp 7 * ---------------------------------------------------------------------------- 8 * | 1/*- 2 * ---------------------------------------------------------------------------- 3 * "THE BEER-WARE LICENSE" (Revision 42): 4 * <phk@FreeBSD.ORG> wrote this file. As long as you retain this notice you 5 * can do whatever you want with this stuff. If we meet some day, and you think 6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp 7 * ---------------------------------------------------------------------------- 8 * |
9 * $FreeBSD: head/sys/dev/md/md.c 226966 2011-10-31 10:53:27Z ae $ | 9 * $FreeBSD: head/sys/dev/md/md.c 228449 2011-12-13 00:38:50Z eadler $ |
10 * 11 */ 12 13/*- 14 * The following functions are based in the vn(4) driver: mdstart_swap(), 15 * mdstart_vnode(), mdcreate_swap(), mdcreate_vnode() and mddestroy(), 16 * and as such under the following copyright: 17 * --- 82 unchanged lines hidden (view full) --- 100#ifndef MD_NSECT 101#define MD_NSECT (10000 * 2) 102#endif 103 104static MALLOC_DEFINE(M_MD, "md_disk", "Memory Disk"); 105static MALLOC_DEFINE(M_MDSECT, "md_sectors", "Memory Disk Sectors"); 106 107static int md_debug; | 10 * 11 */ 12 13/*- 14 * The following functions are based in the vn(4) driver: mdstart_swap(), 15 * mdstart_vnode(), mdcreate_swap(), mdcreate_vnode() and mddestroy(), 16 * and as such under the following copyright: 17 * --- 82 unchanged lines hidden (view full) --- 100#ifndef MD_NSECT 101#define MD_NSECT (10000 * 2) 102#endif 103 104static MALLOC_DEFINE(M_MD, "md_disk", "Memory Disk"); 105static MALLOC_DEFINE(M_MDSECT, "md_sectors", "Memory Disk Sectors"); 106 107static int md_debug; |
108SYSCTL_INT(_debug, OID_AUTO, mddebug, CTLFLAG_RW, &md_debug, 0, ""); | 108SYSCTL_INT(_debug, OID_AUTO, mddebug, CTLFLAG_RW, &md_debug, 0, 109 "Enable md(4) debug messages"); |
109static int md_malloc_wait; | 110static int md_malloc_wait; |
110SYSCTL_INT(_vm, OID_AUTO, md_malloc_wait, CTLFLAG_RW, &md_malloc_wait, 0, ""); | 111SYSCTL_INT(_vm, OID_AUTO, md_malloc_wait, CTLFLAG_RW, &md_malloc_wait, 0, 112 "Allow malloc to wait for memory allocations"); |
111 112#if defined(MD_ROOT) && defined(MD_ROOT_SIZE) 113/* 114 * Preloaded image gets put here. 115 * Applications that patch the object with the image can determine 116 * the size looking at the start and end markers (strings), 117 * so we want them contiguous. 118 */ --- 1277 unchanged lines hidden --- | 113 114#if defined(MD_ROOT) && defined(MD_ROOT_SIZE) 115/* 116 * Preloaded image gets put here. 117 * Applications that patch the object with the image can determine 118 * the size looking at the start and end markers (strings), 119 * so we want them contiguous. 120 */ --- 1277 unchanged lines hidden --- |