RTEMS  5.0.0
Functions

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]modeis 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]imodeis 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]locis a pointer to the path location to set the handlers in.
[in]inodeis the inode handle to check the mode of for the type of handlers.
Return values
trueThe handlers have been set.
falseThere are no handlers for the mode.