RTEMS
5.1
|
RTEMS File Systems Format. More...
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <inttypes.h>
#include <rtems/rfs/rtems-rfs-data.h>
#include <rtems/rfs/rtems-rfs-file-system.h>
#include <rtems/rfs/rtems-rfs-inode.h>
#include <rtems/rtems-rfs-format.h>
#include <rtems/rfs/rtems-rfs-dir.h>
Macros | |
#define | GIGS(_g) (((uint64_t)(_g)) * 1024 * 1024) |
#define | write_sb(_o, _d) rtems_rfs_write_u32(sb + (_o), _d) |
Functions | |
int | rtems_rfs_format (const char *name, const rtems_rfs_format_config *config) |
RTEMS File Systems Format.
Format the file system ready for use.
#define GIGS | ( | _g | ) | (((uint64_t)(_g)) * 1024 * 1024) |
Return the number of gigabytes.
int rtems_rfs_format | ( | const char * | name, |
const rtems_rfs_format_config * | config | ||
) |
RFS Format command.
[in] | name | is the device name to format. |
[in] | config | is a pointer to the configuration table. |
-1 | Error. See errno. |
0 | No error. Format successful. |