DCMD_F3S_ERASE

Erase sectors in a raw flash filesystem partition

Synopsis:

#include <sys/dcmd_f3s.h>

#define DCMD_F3S_ERASE     __DIOT(_DCMD_F3S, F3S_ERASE, f3s_erase_t)

Arguments to devctl():

Argument Value
filedes A file descriptor that you obtained by opening the device.
dcmd DCMD_F3S_ERASE
dev_data_ptr A pointer to a f3s_erase_t structure (see below)
n_bytes sizeof(f3s_erase_t)
dev_info_ptr NULL

Description:

This command erases sectore in a raw flash filesystem partition.

Input:

A f3s_erase_t structure:

typedef struct f3s_erase_s
{
  uint32_t status;  /* erase status */
  uint32_t offset;  /* offset of first unit expressed in bytes */
  uint32_t limit;   /* limit of last unit expressed in bytes */
}
f3s_erase_t;

Output:

None.

See also:

devctl() in the QNX Neutrino C Library Reference