Erase an area on the device
#include <hw/dcmd_sim_mmcsd.h> #define DCMD_MMCSD_ERASE __DIOTF(_DCMD_CAM, _SIM_MMCSD + 3, struct _mmcsd_erase)
| Argument | Value |
|---|---|
| filedes | A file descriptor that you obtained by opening the device |
| dcmd | DCMD_MMCSD_ERASE |
| dev_data_ptr | A pointer to a MMCSD_ERASE structure |
| n_bytes | sizeof(MMCSD_ERASE) |
| dev_info_ptr | NULL |
This command erases part of a device.
An MMCSD_ERASE structure that specifies the area to erase:
typedef struct _mmcsd_erase {
uint32_t action;
uint32_t rsvd;
uint64_t lba;
uint64_t nlba;
uint64_t rsvd2;
} MMCSD_ERASE;
The members include:
None.
devctl() in the QNX Neutrino C Library Reference