RTEMS 6.3
Loading...
Searching...
No Matches

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)
#define write_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)
Value:
(((uint64_t)(_g)) * 1024 * 1024)

Return the number of gigabytes.

◆ write_sb

#define write_sb ( _o,
_d )
Value:
rtems_rfs_write_u32(sb + (_o), _d)
#define rtems_rfs_write_u32(_d, _v)
Definition rtems-rfs-data.h:100

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.