DCMD_F3S_UNITINFO
QNX SDP8.0Devctl and Ioctl CommandsDeveloper
Get information about a unit (erase sector)
Synopsis:
#include <sys/dcmd_f3s.h>
#define DCMD_F3S_UNITINFO __DIOTF(_DCMD_F3S, F3S_UNITINFO, f3s_unitinfo_t)
Arguments to devctl():
Argument | Value |
---|---|
filedes | A file descriptor that you obtained by opening the device. |
dcmd | DCMD_F3S_UNITINFO |
dev_data_ptr | A pointer to a f3s_unitinfo_t (see below) |
n_bytes | sizeof(f3s_unitinfo_t) |
dev_info_ptr | NULL |
Description:
This command gets information about a unit (erase sector).
Input:
A f3s_unitinfo_t structure:
typedef struct f3s_unitinfo_s
{
uint32_t status; /* info status */
uint32_t offset; /* offset of unit in partition */
uint32_t unit_size; /* size of a unit expressed in bytes */
uint32_t erase_count; /* count of erasures on unit */
}
f3s_unitinfo_t;
Fill in the offset before calling devctl().
Output:
A f3s_unitinfo_t structure, filled in by the driver.
See also:
devctl() in the QNX OS C Library Reference
Page updated: