open_disk
static int open_disk(void);
if (open_disk() < 0)
rv = open_disk();
if (open_disk() < 0)
bd_read(struct open_disk *od, daddr_t dblk, int blks, caddr_t dest)
static int bd_getgeom(struct open_disk *od);
static int bd_read(struct open_disk *od, daddr_t dblk, int blks,
static int bd_write(struct open_disk *od, daddr_t dblk, int blks,
static void bd_printslice(struct open_disk *od, struct dos_partition *dp,
bd_write(struct open_disk *od, daddr_t dblk, int blks, caddr_t dest)
static void bd_printbsdslice(struct open_disk *od, daddr_t offset,
bd_getgeom(struct open_disk *od)
struct open_disk *od;
static int bd_opendisk(struct open_disk **odp, struct i386_devdesc *dev);
static void bd_closedisk(struct open_disk *od);
static int bd_bestslice(struct open_disk *od);
static void bd_chainextended(struct open_disk *od, u_int32_t base,
struct open_disk *od;
bd_printslice(struct open_disk *od, struct dos_partition *dp, char *prefix,
bd_printbsdslice(struct open_disk *od, daddr_t offset, char *prefix,
struct open_disk *od;
bd_opendisk(struct open_disk **odp, struct i386_devdesc *dev)
struct open_disk *od;
od = (struct open_disk *)malloc(sizeof(struct open_disk));
bd_chainextended(struct open_disk *od, u_int32_t base, u_int32_t offset)
bd_bestslice(struct open_disk *od)
struct open_disk *od = (struct open_disk *)(((struct i386_devdesc *)(f->f_devdata))->d_kind.biosdisk.data);
bd_closedisk(struct open_disk *od)
struct open_disk *od = (struct open_disk *)(((struct i386_devdesc *)devdata)->d_kind.biosdisk.data);
struct open_disk *od = (struct open_disk *)(((struct i386_devdesc *)devdata)->d_kind.biosdisk.data);