#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);
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.
- 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 a pointer to the corresponding partition entry, or zero if it is invalid.
diskpart_lookup_bsd_string, the OSKit Block I/O Interface (section 5.3).