Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

FS_PARTITION_NBR  FSDev_GetNbrPartitions (CPU_CHAR  *name_dev,
                                          FS_ERR    *p_err);

File

Called from

Code enabled by

fs_dev.c

Application

FS_CFG_PARTITION_EN

Get number of partitions on a device

Arguments

name_dev

Pointer to the device name.

p_err

Pointer to variable that will receive return error code from this function.

FS_ERR_NONE

Number of partitions obtained.

FS_ERR_DEV_VOL_OPEN

Volume open on device.

FS_ERR_INVALID_SIG

Invalid MBR signature.

FS_ERR_NAME_NULL

Argument name_dev passed a NULL pointer.

Or device access error (see section B-4 “Device Error Codes”).

Returned Value

Number of partitions on the device, if no error was encountered.

Zero, otherwise.

Notes/Warnings

Device state change will result from device I/O, not present or timeout error.

  • No labels