DCMD_MMCSD_ERASE
QNX SDP8.0Devctl and Ioctl CommandsDeveloper
Erase an area on the device
Synopsis:
#include <hw/dcmd_sim_mmcsd.h>
#define DCMD_MMCSD_ERASE __DIOTF(_DCMD_CAM, _SIM_MMCSD + 3, struct _mmcsd_erase)
Arguments to devctl():
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 |
Description:
This command erases part of a device.
Input:
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:
- action
- The action to take; one of:
- MMCSD_ERASE_ACTION_NORMAL
- MMCSD_ERASE_ACTION_SECURE
- lba
- The logical block address to start erasing at.
- nlba
- The number of logical blocks to erase.
Output:
None.
See also:
devctl() in the QNX OS C Library Reference
Page updated: