next up previous contents index
Next: 21.5.9 diskpart_get_type: Search for Up: 21.5 API reference Previous: 21.5.7 diskpart_lookup_bsd_string: search for

21.5.8 diskpart_blkio_lookup_bsd_string: search for a partition entry

 

SYNOPSIS

#include <oskit/diskpart/diskpart.h>

struct diskpart *diskpart_blkio_lookup_bsd_string(struct diskpart *array, char *name, oskit_blkio_t *block_io, [out] oskit_blkio_t **out_block_io);

DESCRIPTION

This is similar to (and uses) diskpart_lookup_bsd_string but returns an OSKit ``Block I/O'' interface for the partition; i.e., operations on the returned oskit_blkio_t are restricted to the bounds of the partition.

PARAMETERS

array
This should be the pointer to the start of the array.
name
A case-insensitive, NULL-terminated, ASCII string containing an optional Slice specifier followed by an optional partition. [s<num>][<part>], where part is a valid partition in the BSD slice specified by num (or default).
block_io
The oskit_blkio_t whose partitions we are interested in.
out_block_io
A pointer to the new oskit_blkio_t.

RETURNS

Returns a pointer to the corresponding partition entry, or zero if it is invalid.

RELATED INFORMATION

diskpart_lookup_bsd_string, the OSKit Block I/O Interface (section 5.3).



University of Utah Flux Research Group