Lines Matching refs:disk
1 /* $OpenBSD: disk.h,v 1.38 2023/11/15 20:23:19 kn Exp $ */
2 /* $NetBSD: disk.h,v 1.11 1996/04/28 20:22:50 thorpej Exp $ */
42 * from: Header: disk.h,v 1.5 92/11/19 04:33:03 torek Exp (LBL)
44 * @(#)disk.h 8.1 (Berkeley) 6/2/93
70 struct timeval ds_attachtime; /* time disk was attached */
75 struct disk {
76 TAILQ_ENTRY(disk) dk_link; /* link in global disklist */
77 struct rwlock dk_lock; /* disk lock */
79 char *dk_name; /* disk name */
80 struct device *dk_device; /* disk device structure. */
81 dev_t dk_devno; /* disk device number. */
82 int dk_flags; /* disk flags */
97 struct timeval dk_attachtime; /* time disk was attached */
109 * Disk label information. Storage for the in-core disk label
131 TAILQ_HEAD(disklist_head, disk); /* the disklist is a TAILQ */
136 extern int disk_change; /* disk attached/detached */
139 int disk_construct(struct disk *);
140 void disk_attach(struct device *, struct disk *);
141 void disk_detach(struct disk *);
142 int disk_openpart(struct disk *, int, int, int);
143 void disk_closepart(struct disk *, int, int);
145 void disk_busy(struct disk *);
146 void disk_unbusy(struct disk *, long, daddr_t, int);
148 int disk_lock(struct disk *);
149 void disk_lock_nointr(struct disk *);
150 void disk_unlock(struct disk *);