RTEMS 7.0-rc1
Loading...
Searching...
No Matches
Functions | Variables
rtems-fatfs-init.c File Reference

RTEMS FATFS initialization. More...

#include <errno.h>
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/statvfs.h>
#include <time.h>
#include <unistd.h>
#include <rtems.h>
#include <rtems/bdbuf.h>
#include <rtems/diskdevs.h>
#include <rtems/fatfs.h>
#include <rtems/libio.h>
#include <rtems/libio_.h>
#include <rtems/score/chain.h>
#include <rtems/seterr.h>
#include "ff.h"
#include "rtems-fatfs.h"

Functions

int rtems_fatfs_initialize (rtems_filesystem_mount_table_entry_t *mt_entry, const void *data)
 Initialize FatFS filesystem.
 
void rtems_fatfs_fsunmount_me (rtems_filesystem_mount_table_entry_t *mt_entry)
 
void rtems_fatfs_eval_path (rtems_filesystem_eval_path_context_t *ctx)
 
int rtems_fatfs_mknod (const rtems_filesystem_location_info_t *parentloc, const char *name, size_t namelen, mode_t mode, dev_t dev)
 
int rtems_fatfs_rmnod (const rtems_filesystem_location_info_t *parentloc, const rtems_filesystem_location_info_t *loc)
 
bool rtems_fatfs_are_nodes_equal (const rtems_filesystem_location_info_t *a, const rtems_filesystem_location_info_t *b)
 
int rtems_fatfs_clone_node (rtems_filesystem_location_info_t *loc)
 
void rtems_fatfs_free_node (const rtems_filesystem_location_info_t *loc)
 
int rtems_fatfs_rename (const rtems_filesystem_location_info_t *old_parent_loc, const rtems_filesystem_location_info_t *old_loc, const rtems_filesystem_location_info_t *new_parent_loc, const char *new_name, size_t new_namelen)
 
int rtems_fatfs_utimens (const rtems_filesystem_location_info_t *loc, struct timespec times[2])
 
DWORD get_fattime (void)
 
int rtems_fatfs_statvfs (const rtems_filesystem_location_info_t *root_loc, struct statvfs *sb)
 

Variables

const rtems_filesystem_operations_table rtems_fatfs_ops
 

Detailed Description

RTEMS FATFS initialization.

Variable Documentation

◆ rtems_fatfs_ops

const rtems_filesystem_operations_table rtems_fatfs_ops
Initial value:
= {
.lock_h = rtems_fatfs_lock,
.unlock_h = rtems_fatfs_unlock,
.eval_path_h = rtems_fatfs_eval_path,
.are_nodes_equal_h = rtems_fatfs_are_nodes_equal,
.mknod_h = rtems_fatfs_mknod,
.rmnod_h = rtems_fatfs_rmnod,
.clonenod_h = rtems_fatfs_clone_node,
.freenod_h = rtems_fatfs_free_node,
.fsunmount_me_h = rtems_fatfs_fsunmount_me,
.utimens_h = rtems_fatfs_utimens,
.rename_h = rtems_fatfs_rename,
.statvfs_h = rtems_fatfs_statvfs
}
int rtems_fatfs_initialize(rtems_filesystem_mount_table_entry_t *mt_entry, const void *data)
Initialize FatFS filesystem.
Definition: rtems-fatfs-init.c:150
int rtems_filesystem_default_unmount(rtems_filesystem_mount_table_entry_t *mt_entry)
Definition: default_unmount.c:41
int rtems_filesystem_default_fchmod(const rtems_filesystem_location_info_t *loc, mode_t mode)
Definition: default_fchmod.c:42
int rtems_filesystem_default_symlink(const rtems_filesystem_location_info_t *parentloc, const char *name, size_t namelen, const char *target)
Definition: default_symlink.c:44
int rtems_filesystem_default_chown(const rtems_filesystem_location_info_t *loc, uid_t owner, gid_t group)
Definition: default_chown.c:42
ssize_t rtems_filesystem_default_readlink(const rtems_filesystem_location_info_t *loc, char *buf, size_t bufsize)
Definition: default_readlink.c:44
int rtems_filesystem_default_link(const rtems_filesystem_location_info_t *parentloc, const rtems_filesystem_location_info_t *targetloc, const char *name, size_t namelen)
Definition: default_link.c:42