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

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
Functions
rtems-rfs-rtems-utils.c File Reference
IO Library » File System Types and Mount » RTEMS File System Group Management

Set of Utility Functions to Support RTEMS RFS on RTEMS. More...

`#include <sys/types.h>`
`#include <sys/stat.h>`
`#include <stdlib.h>`
`#include "rtems-rfs-rtems.h"`

## Functions
bool | rtems_rfs_rtems_set_handlers (rtems_filesystem_location_info_t *loc, rtems_rfs_inode_handle *inode)
uint16_t | rtems_rfs_rtems_imode (mode_t mode)
mode_t | rtems_rfs_rtems_mode (int imode)

## Detailed Description

Set of Utility Functions to Support RTEMS RFS on RTEMS.

## Function Documentation

## ◆ rtems_rfs_rtems_imode()

uint16_t rtems_rfs_rtems_imode | ( | mode_t | mode | ) |

Convert the system mode flags to inode mode flags.

Parameters

  [in] | mode | is the system mode flags.

Returns
  uint16_t The inode mode flags.

## ◆ rtems_rfs_rtems_mode()

mode_t rtems_rfs_rtems_mode | ( | int | imode | ) |

Convert the inode mode flags to system mode flags.

Parameters

  [in] | imode | is the inode mode flags

Returns
  mode_t The system mode flags.

## ◆ rtems_rfs_rtems_set_handlers()

bool rtems_rfs_rtems_set_handlers | ( | rtems_filesystem_location_info_t * | pathloc,
|  | rtems_rfs_inode_handle * | inode
| ) |  |

Set the handlers in the path location based on the mode of the inode.

Parameters

  [in] | loc | is a pointer to the path location to set the handlers in.
  [in] | inode | is the inode handle to check the mode of for the type of handlers.

Return values

  true | The handlers have been set.
  false | There are no handlers for the mode.