proc_part_device()

Device of a partition

Syntax:

int proc_part_device(const char *path, char *device);

Arguments:

Name Description
path partition path (e.g. /home)
device buffer to put the partition device

Description:

Get the device on which path is mounted (e.g. /dev/hda1).

Return Values:

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

See Also:

proc_part_mount(), proc_part_type()



INDEX