disk.h (94287) | disk.h (103675) |
---|---|
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/sys/disk.h 94287 2002-04-09 15:43:32Z phk $ | 9 * $FreeBSD: head/sys/sys/disk.h 103675 2002-09-20 12:52:03Z phk $ |
10 * 11 */ 12 13#ifndef _SYS_DISK_H_ 14#define _SYS_DISK_H_ 15 16#include <sys/ioccom.h> 17 --- 20 unchanged lines hidden (view full) --- 38}; 39 40#define DISKFLAG_LOCK 0x1 41#define DISKFLAG_WANTED 0x2 42 43dev_t disk_create(int unit, struct disk *disk, int flags, struct cdevsw *cdevsw, struct cdevsw *diskdevsw); 44void disk_destroy(dev_t dev); 45struct disk *disk_enumerate(struct disk *disk); | 10 * 11 */ 12 13#ifndef _SYS_DISK_H_ 14#define _SYS_DISK_H_ 15 16#include <sys/ioccom.h> 17 --- 20 unchanged lines hidden (view full) --- 38}; 39 40#define DISKFLAG_LOCK 0x1 41#define DISKFLAG_WANTED 0x2 42 43dev_t disk_create(int unit, struct disk *disk, int flags, struct cdevsw *cdevsw, struct cdevsw *diskdevsw); 44void disk_destroy(dev_t dev); 45struct disk *disk_enumerate(struct disk *disk); |
46void disk_err(struct bio *bp, const char *what, int blkdone, int nl); |
|
46void disk_invalidate(struct disk *disk); 47 48#endif 49 50#define DIOCGSECTORSIZE _IOR('d', 128, u_int) 51 /*- 52 * Get the sectorsize of the device in bytes. The sectorsize is the 53 * smallest unit of data which can be transfered from this device. --- 38 unchanged lines hidden --- | 47void disk_invalidate(struct disk *disk); 48 49#endif 50 51#define DIOCGSECTORSIZE _IOR('d', 128, u_int) 52 /*- 53 * Get the sectorsize of the device in bytes. The sectorsize is the 54 * smallest unit of data which can be transfered from this device. --- 38 unchanged lines hidden --- |