next up previous contents index
Next: 21.5.5 diskpart_dump: print a Up: 21.5 API reference Previous: 21.5.3 diskpart_blkio_get_partition: initialize an

21.5.4 diskpart_fill_entry: initialize a single partition entry

 

SYNOPSIS

#include <oskit/diskpart/diskpart.h>

void diskpart_fill_entry(struct diskpart *array, int start, int size, struct diskpart *subs, int nsubs, short type, short fsys);

DESCRIPTION

This function initializes a single partition entry.

PARAMETERS

array
Pointer to the struct diskpart entry to be filled
start
Starting sector on the disk for the partition.
size
Number of sectors in the partition.
subs
Pointer to its first child partition.
nsubs
Number of sub-partitions.
type
Partition type, as defined in diskpart.h
fsys
Filesystem in the partition (if known), as defined in diskpart.h



University of Utah Flux Research Group