RTEMS: cpukit/libfs/src/rfs/rtems-rfs-shell.c File Reference

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
Data Structures | Typedefs | Functions
rtems-rfs-shell.c File Reference
IO Library » File System Types and Mount » RTEMS File System Group Management

RTEMS File Systems Shell Commands Support. More...

`#include <inttypes.h>`
`#include <stdlib.h>`
`#include <string.h>`
`#include <rtems/rfs/rtems-rfs-block.h>`
`#include <rtems/rfs/rtems-rfs-buffer.h>`
`#include <rtems/rfs/rtems-rfs-group.h>`
`#include <rtems/rfs/rtems-rfs-inode.h>`
`#include <rtems/rfs/rtems-rfs-dir.h>`
`#include <rtems/rtems-rfs-format.h>`
`#include <sys/statvfs.h>`

## Data Structures
struct | rtems_rfs_shell_cmd

## Typedefs
typedef int(* | rtems_rfs_shell_handler) (rtems_rfs_file_system *fs, int argc, char *argv[])

## Functions
int | rtems_shell_debugrfs (int argc, char *argv[])
int | rtems_shell_rfs_format (int argc, char *argv[])

## Detailed Description

RTEMS File Systems Shell Commands Support.

## Typedef Documentation

## ◆ rtems_rfs_shell_handler

typedef int(* rtems_rfs_shell_handler) (rtems_rfs_file_system *fs, int argc, char *argv[])

The type of the shell handlers we have.

## Function Documentation

## ◆ rtems_shell_debugrfs()

int rtems_shell_debugrfs | ( | int | argc,
|  | char * | argv[]
| ) |  |

The shell command for the RFS debugger.

Parameters

  [in] | argc | is the argument count.
  [in] | argv | is a pointer to the argument variables.

Return values

  0 | Successful operation.
  error_code | An error occurred.

## ◆ rtems_shell_rfs_format()

int rtems_shell_rfs_format | ( | int | argc,
|  | char * | argv[]
| ) |  |

The shell command for formatting an RFS file system.

Parameters

  [in] | argc | is the argument count.
  [in] | argv | is a pointer to the argument variables.

Return values

  0 | Successful operation.
  1 | An error occurred.