RTEMS 6.1-rc5
Loading...
Searching...
No Matches
Functions | Variables

RTEMS File System Interface for RTEMS. More...

#include <sys/param.h>
#include <inttypes.h>
#include <string.h>
#include <stdlib.h>
#include <rtems/rfs/rtems-rfs-file.h>
#include <rtems/rfs/rtems-rfs-dir.h>
#include <rtems/rfs/rtems-rfs-link.h>
#include "rtems-rfs-rtems.h"

Functions

int rtems_rfs_rtems_fstat (const rtems_filesystem_location_info_t *pathloc, struct stat *buf)
 
int rtems_rfs_rtems_rmnod (const rtems_filesystem_location_info_t *parent_pathloc, const rtems_filesystem_location_info_t *pathloc)
 
int rtems_rfs_rtems_fdatasync (rtems_libio_t *iop)
 
int rtems_rfs_rtems_initialise (rtems_filesystem_mount_table_entry_t *mt_entry, const void *data)
 
void rtems_rfs_rtems_shutdown (rtems_filesystem_mount_table_entry_t *mt_entry)
 

Variables

const rtems_filesystem_file_handlers_r rtems_rfs_rtems_link_handlers
 
const rtems_filesystem_operations_table rtems_rfs_ops
 

Detailed Description

RTEMS File System Interface for RTEMS.

Function Documentation

◆ rtems_rfs_rtems_fdatasync()

int rtems_rfs_rtems_fdatasync ( rtems_libio_t iop)

The following routine does a sync on an inode node. Currently it flushes everything related to this device.

Parameters
iop
Returns
int

◆ rtems_rfs_rtems_fstat()

int rtems_rfs_rtems_fstat ( const rtems_filesystem_location_info_t pathloc,
struct stat *  buf 
)

The following routine does a stat on a node.

◆ rtems_rfs_rtems_rmnod()

int rtems_rfs_rtems_rmnod ( const rtems_filesystem_location_info_t parent_pathloc,
const rtems_filesystem_location_info_t pathloc 
)

Routine to remove a node from the RFS file system.

Parameters
parent_pathloc
pathloc
Returns
int

◆ rtems_rfs_rtems_shutdown()

void rtems_rfs_rtems_shutdown ( rtems_filesystem_mount_table_entry_t mt_entry)

Shutdown the file system.

Variable Documentation

◆ rtems_rfs_ops

const rtems_filesystem_operations_table rtems_rfs_ops
Initial value:
=
{
.lock_h = rtems_rfs_rtems_lock_by_mt_entry,
.unlock_h = rtems_rfs_rtems_unlock_by_mt_entry,
.eval_path_h = rtems_rfs_rtems_eval_path,
.link_h = rtems_rfs_rtems_link,
.fchmod_h = rtems_rfs_rtems_fchmod,
.mknod_h = rtems_rfs_rtems_mknod,
.chown_h = rtems_rfs_rtems_chown,
.fsunmount_me_h = rtems_rfs_rtems_shutdown,
.utimens_h = rtems_rfs_rtems_utimens,
.symlink_h = rtems_rfs_rtems_symlink,
.readlink_h = rtems_rfs_rtems_readlink,
.rename_h = rtems_rfs_rtems_rename,
.statvfs_h = rtems_rfs_rtems_statvfs
}
int rtems_filesystem_default_unmount(rtems_filesystem_mount_table_entry_t *mt_entry)
Definition: default_unmount.c:41
int rtems_filesystem_default_clonenode(rtems_filesystem_location_info_t *loc)
Definition: default_clone.c:42
bool rtems_filesystem_default_are_nodes_equal(const rtems_filesystem_location_info_t *a, const rtems_filesystem_location_info_t *b)
Tests if the node access pointer of one location is equal to the node access pointer of the other loc...
Definition: default_are_nodes_equal.c:42
int rtems_filesystem_default_mount(rtems_filesystem_mount_table_entry_t *mt_entry)
Definition: default_mount.c:41
void rtems_filesystem_default_freenode(const rtems_filesystem_location_info_t *loc)
Definition: default_freenode.c:43
int rtems_rfs_rtems_rmnod(const rtems_filesystem_location_info_t *parent_pathloc, const rtems_filesystem_location_info_t *pathloc)
Definition: rtems-rfs-rtems.c:580
void rtems_rfs_rtems_shutdown(rtems_filesystem_mount_table_entry_t *mt_entry)
Definition: rtems-rfs-rtems.c:850

RFS file system operations table.

◆ rtems_rfs_rtems_link_handlers

const rtems_filesystem_file_handlers_r rtems_rfs_rtems_link_handlers
Initial value:
=
{
}
int rtems_filesystem_default_fcntl(rtems_libio_t *iop, int cmd)
Definition: default_fcntl.c:41
int rtems_filesystem_default_ftruncate(rtems_libio_t *iop, off_t length)
Definition: default_ftruncate.c:44
int rtems_filesystem_default_ioctl(rtems_libio_t *iop, ioctl_command_t request, void *buffer)
Definition: default_ioctl.c:43
int rtems_filesystem_default_poll(rtems_libio_t *iop, int events)
Default poll handler.
Definition: default_poll.c:44
int rtems_filesystem_default_fsync_or_fdatasync(rtems_libio_t *iop)
Definition: default_fsync.c:43
int rtems_filesystem_default_kqfilter(rtems_libio_t *iop, struct knote *kn)
Default kernel event filter handler.
Definition: default_kqfilter.c:42
ssize_t rtems_filesystem_default_writev(rtems_libio_t *iop, const struct iovec *iov, int iovcnt, ssize_t total)
Calls the write handler for each IO vector entry.
Definition: default_writev.c:45
ssize_t rtems_filesystem_default_readv(rtems_libio_t *iop, const struct iovec *iov, int iovcnt, ssize_t total)
Calls the read handler for each IO vector entry.
Definition: default_readv.c:45
off_t rtems_filesystem_default_lseek(rtems_libio_t *iop, off_t offset, int whence)
Definition: default_lseek.c:43
int rtems_filesystem_default_mmap(rtems_libio_t *iop, void **addr, size_t len, int prot, off_t off)
Default MMAP handler.
Definition: default_mmap.c:42
int rtems_filesystem_default_close(rtems_libio_t *iop)
Definition: default_close.c:37
ssize_t rtems_filesystem_default_read(rtems_libio_t *iop, void *buffer, size_t count)
Definition: default_read.c:39
int rtems_filesystem_default_open(rtems_libio_t *iop, const char *path, int oflag, mode_t mode)
Definition: default_open.c:43
ssize_t rtems_filesystem_default_write(rtems_libio_t *iop, const void *buffer, size_t count)
Definition: default_write.c:41
int rtems_rfs_rtems_fstat(const rtems_filesystem_location_info_t *pathloc, struct stat *buf)
Definition: rtems-rfs-rtems.c:433

Handler table for RFS link nodes