Get information about a partition
#include <sys/dcmd_f3s.h> #define DCMD_F3S_PARTINFO __DIOTF(_DCMD_F3S, F3S_PARTINFO, f3s_partinfo_t)
| Argument | Value | 
|---|---|
| filedes | A file descriptor that you obtained by opening the device. | 
| dcmd | DCMD_F3S_PARTINFO | 
| dev_data_ptr | A pointer to a f3s_partinfo_t structure (see below) | 
| n_bytes | sizeof(f3s_partinfo_t) | 
| dev_info_ptr | NULL | 
This command gets information about a partition.
None.
A f3s_partinfo_t structure, filled in by the driver:
typedef struct f3s_partinfo_s
{
  uint32_t status;       /* info status */
  uint32_t total_size;   /* total size of partition expressed in bytes */
  uint32_t unit_size;    /* size of a unit expressed in bytes */
  uint32_t spare_size;   /* spare size within partition expressed in bytes */
  uint32_t retire_size;  /* retired size within partition expressed in bytes */
  uint32_t head_size;    /* overhead size expressed in bytes */
  uint32_t pad_size;     /* alignment padding size expressed in bytes */
  uint32_t free_size;    /* free size in partition expressed in bytes */
  uint32_t stale_size;   /* stale size in partition expressed in bytes */
  uint32_t resv_size;    /* reserved size in partition expressed in bytes */
}
f3s_partinfo_t;
devctl() in the QNX Neutrino C Library Reference