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/kern/subr_disk.c 57325 2000-02-18 20:57:33Z sos $ |
10 * 11 */ 12 13#include <sys/param.h> 14#include <sys/systm.h> 15#include <sys/kernel.h> 16#include <sys/sysctl.h> 17#include <sys/buf.h> --- 65 unchanged lines hidden (view full) --- 83 *secsize = dl->d_secsize; 84 return (0); 85 86} 87 88void 89disk_invalidate (struct disk *disk) 90{ |
91 if (disk->d_slice) 92 dsgone(&disk->d_slice); |
93} 94 95void 96disk_destroy(dev_t dev) 97{ |
98 dev->si_disk = NULL; 99 destroy_dev(dev); |
100 return; 101} 102 103/* 104 * The cdevsw functions 105 */ 106 107static int --- 141 unchanged lines hidden --- |