md.c (111119) | md.c (111815) |
---|---|
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 111119 2003-02-19 05:47:46Z imp $ | 9 * $FreeBSD: head/sys/dev/md/md.c 111815 2003-03-03 12:15:54Z phk $ |
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 * --- 96 unchanged lines hidden (view full) --- 114static int mdunits; 115static dev_t status_dev = 0; 116 117#define CDEV_MAJOR 95 118 119static d_ioctl_t mdctlioctl; 120 121static struct cdevsw mdctl_cdevsw = { | 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 * --- 96 unchanged lines hidden (view full) --- 114static int mdunits; 115static dev_t status_dev = 0; 116 117#define CDEV_MAJOR 95 118 119static d_ioctl_t mdctlioctl; 120 121static struct cdevsw mdctl_cdevsw = { |
122 /* open */ nullopen, 123 /* close */ nullclose, 124 /* read */ noread, 125 /* write */ nowrite, 126 /* ioctl */ mdctlioctl, 127 /* poll */ nopoll, 128 /* mmap */ nommap, 129 /* strategy */ nostrategy, 130 /* name */ MD_NAME, 131 /* maj */ CDEV_MAJOR | 122 .d_open = nullopen, 123 .d_close = nullclose, 124 .d_ioctl = mdctlioctl, 125 .d_name = MD_NAME, 126 .d_maj = CDEV_MAJOR |
132}; 133 134 135static LIST_HEAD(, md_s) md_softc_list = LIST_HEAD_INITIALIZER(&md_softc_list); 136 137#define NINDIR (PAGE_SIZE / sizeof(uintptr_t)) 138#define NMASK (NINDIR-1) 139static int nshift; --- 1067 unchanged lines hidden --- | 127}; 128 129 130static LIST_HEAD(, md_s) md_softc_list = LIST_HEAD_INITIALIZER(&md_softc_list); 131 132#define NINDIR (PAGE_SIZE / sizeof(uintptr_t)) 133#define NMASK (NINDIR-1) 134static int nshift; --- 1067 unchanged lines hidden --- |