DCMD_F3S_FORMAT

Format a flash filesystem

Synopsis:

#include <sys/dcmd_f3s.h>

#define DCMD_F3S_FORMAT    __DIOT(_DCMD_F3S, F3S_FORMAT, f3s_format_t)

Arguments to devctl():

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

Description:

This command formats a flash filesystem.

Input:

A f3s_format_t structure:

typedef struct f3s_format_s
{
  uint32_t status;       /* format status */
  uint32_t offset;       /* offset of first unit expressed in bytes */
  uint32_t limit;        /* limit of last unit expressed in bytes */
  uint32_t unit_spare;   /* number of spare units */
  uint32_t align_pow2;   /* alignment power of two */
  uint32_t xip_pow2;     /* xip power of two */
  uint32_t name_length;  /* length of name */
/*unit8_t name;             root name */
}
f3s_format_t;

Output:

None.

See also:

devctl() in the QNX Neutrino C Library Reference