RTEMS  5.0.0
Macros | Functions

RTEMS File Systems FormatFormat the file system ready for use. 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)
 

Detailed Description

RTEMS File Systems Format

Format the file system ready for use.

Macro Definition Documentation

◆ GIGS

#define GIGS (   _g)    (((uint64_t)(_g)) * 1024 * 1024)

Return the number of gigabytes.

Function Documentation

◆ rtems_rfs_format()

int rtems_rfs_format ( const char *  name,
const rtems_rfs_format_config config 
)

RFS Format command.

Parameters
[in]nameis the device name to format.
[in]configis a pointer to the configuration table.
Return values
-1Error. See errno.
0No error. Format successful.