Query() - Device Driver
static void FSDev_####_Query (FS_DEV *p_dev,
FS_DEV_INFO *p_info,
FS_ERR *p_err);
File | Called from | Code enabled by |
---|---|---|
|
| N/A |
The device driver Query()
function gets information about a device.
Arguments
p_dev
Pointer to device to query.
p_info
Pointer to structure that will receive device information.
p_err
Pointer to variable that will receive the return error code from this function
FS_ERR_NONE
Device information obtained.
FS_ERR_DEV_INVALID_UNIT_NBR
Device unit number is invalid.
FS_ERR_DEV_NOT_OPEN
Device is not open.
FS_ERR_DEV_NOT_PRESENT
Device is not present.
Returned Value
None.
Notes/Warnings
- Tracking whether a device is open is not necessary, because this should ONLY be called when a device is open.
- The device driver
Query()
function is called while the caller holds the device lock.
For more information about the FS_DEV_INFO
structure, see FS_DEV_INFO
.