FSDev_Query()
void FSDev_Query (CPU_CHAR *name_dev,
FS_DEV_INFO *p_info,
FS_ERR *p_err);
File |
Called from |
Code enabled by |
fs_dev.c |
Application |
N/A |
Obtain information about a device.
Arguments
name_dev
Device name.
p_info
Pointer to structure that will receive device information (see Note).
p_err
Pointer to variable that will receive the return error code from this function:
Or device access error (see section B-4 “Device Error Codes” on page 428).
Returned Value
None.
Notes/Warnings
For removable medias, FSDev_Query() will return a valid value for the State and Fixed members of p_info even if the media is not present, Size and SecSize will be set to 0. In such cases an error will be returned stating the reason why the device was unaccessible. Otherwise, if a fatal error occurs or the device is not opened an appropriate error will be return and the content of p_info will be invalid.