proc_get_part()

Get a partition from the partitions table

Syntax:

int proc_get_part(int id, char *path);

Arguments:

Name Description
id partition number (0...num_parts-1)
path buffer to put the partition path

Description:

Get a partition from the partitions table

Return Values:

On success, returns the partition path length. On error, -1 is returned.

See Also:

proc_num_parts(), proc_part_device(), proc_part_type()



INDEX