RTEMS 6.1-rc2
Loading...
Searching...
No Matches
Data Structures

RTEMS File Systems Group Management. More...

#include <rtems/rfs/rtems-rfs-trace.h>
#include <rtems/rfs/rtems-rfs-bitmaps.h>
#include <rtems/rfs/rtems-rfs-buffer.h>

Go to the source code of this file.

Data Structures

struct  _rtems_rfs_group
 Creates bit allocator for blocks in the group simpler. More...
 
#define RTEMS_RFS_GROUP_BLOCK_BITMAP_BLOCK   (0)
 
#define RTEMS_RFS_GROUP_INODE_BITMAP_BLOCK   (1)
 
#define RTEMS_RFS_GROUP_INODE_BLOCK   (2)
 
#define rtems_rfs_group_block(_g, _b)   (((_g)->base) + (_b))
 
#define rtems_rfs_group_inode(_f, _g, _i)    (((_f)->group_inodes * (_g)) + (_i) + RTEMS_RFS_ROOT_INO)
 
typedef struct _rtems_rfs_group rtems_rfs_group
 Creates bit allocator for blocks in the group simpler.
 
int rtems_rfs_group_open (rtems_rfs_file_system *fs, rtems_rfs_buffer_block base, size_t size, size_t inodes, rtems_rfs_group *group)
 Open a group.
 
int rtems_rfs_group_close (rtems_rfs_file_system *fs, rtems_rfs_group *group)
 Close a group.
 
int rtems_rfs_group_bitmap_alloc (rtems_rfs_file_system *fs, rtems_rfs_bitmap_bit goal, bool inode, rtems_rfs_bitmap_bit *result)
 Allocate an inode or block.
 
int rtems_rfs_group_bitmap_free (rtems_rfs_file_system *fs, bool inode, rtems_rfs_bitmap_bit no)
 Free the group allocated bit.
 
int rtems_rfs_group_bitmap_test (rtems_rfs_file_system *fs, bool inode, rtems_rfs_bitmap_bit no, bool *state)
 Test the group allocated bit.
 
int rtems_rfs_group_usage (rtems_rfs_file_system *fs, size_t *blocks, size_t *inodes)
 Determine the number of blocks and inodes used.
 

Detailed Description

RTEMS File Systems Group Management.

RTEMS File Systems Group Management.

These functions manage the groups used in the file system.