| Updated: October 28, 2024 |
Get or clear information about a partition
#include <hw/dcmd_sim_sdmmc.h> #define DCMD_SDMMC_PART_INFO __DIOTF(_DCMD_CAM, _SIM_SDMMC + 10, struct _sdmmc_partition_info)
| Argument | Value |
|---|---|
| filedes | A file descriptor that you obtained by opening the device |
| dcmd | DCMD_SDMMC_PART_INFO |
| dev_data_ptr | A pointer to a SDMMC_PARTITION_INFO structure |
| n_bytes | sizeof(SDMMC_PARTITION_INFO) |
| dev_info_ptr | NULL |
This command gets or clears information about a partition. The SDMMC_PARTITION_INFO structure is defined as:
typedef struct _sdmmc_partition_info {
uint32_t action;
uint32_t rsvd;
uint32_t ptype;
uint32_t pflags;
uint64_t start_lba;
uint64_t num_lba;
uint64_t rc;
uint64_t wc;
uint64_t tc;
uint64_t ec;
uint64_t dc;
uint32_t rsvd1[64];
} SDMMC_PARTITION_INFO;
The members include:
Fill in the action.
The current counts are filled in.
devctl() in the QNX Neutrino C Library Reference