22 #if !defined (_RTEMS_RFS_GROUP_H_) 23 #define _RTEMS_RFS_GROUP_H_ 39 #define RTEMS_RFS_GROUP_BLOCK_BITMAP_BLOCK (0) 40 #define RTEMS_RFS_GROUP_INODE_BITMAP_BLOCK (1) 41 #define RTEMS_RFS_GROUP_INODE_BLOCK (2) 88 #define rtems_rfs_group_block(_g, _b) (((_g)->base) + (_b)) 93 #define rtems_rfs_group_inode(_f, _g, _i) \ 94 (((_f)->group_inodes * (_g)) + (_i) + RTEMS_RFS_ROOT_INO) RTEMS File Systems Bitmap Routines.
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.
Definition: rtems-rfs-group.c:32
Creates bit allocator for blocks in the group simpler.
Definition: rtems-rfs-group.h:51
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.
Definition: rtems-rfs-group.c:314
int32_t rtems_rfs_bitmap_bit
Definition: rtems-rfs-bitmaps.h:84
int rtems_rfs_group_usage(rtems_rfs_file_system *fs, size_t *blocks, size_t *inodes)
Determine the number of blocks and inodes used.
Definition: rtems-rfs-group.c:360
Definition: rtems-rfs-bitmaps.h:104
struct _rtems_rfs_group rtems_rfs_group
Creates bit allocator for blocks in the group simpler.
Definition: rtems-rfs-file-system.h:123
uint32_t rtems_rfs_buffer_block
Definition: rtems-rfs-buffer.h:62
rtems_rfs_buffer_block base
Definition: rtems-rfs-group.h:56
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.
Definition: rtems-rfs-group.c:153
Manages the Trace and Debugging Features of the RTEMS RFS File System.
rtems_rfs_buffer_handle inode_bitmap_buffer
Definition: rtems-rfs-group.h:81
int rtems_rfs_group_bitmap_free(rtems_rfs_file_system *fs, bool inode, rtems_rfs_bitmap_bit no)
Free the group allocated bit.
Definition: rtems-rfs-group.c:273
size_t size
Definition: rtems-rfs-group.h:61
Maps Blocks to the Media Interface Layers.
Definition: rtems-rfs-buffer.h:91
int rtems_rfs_group_close(rtems_rfs_file_system *fs, rtems_rfs_group *group)
Close a group.
Definition: rtems-rfs-group.c:123
rtems_rfs_buffer_handle block_bitmap_buffer
Definition: rtems-rfs-group.h:71
unsigned size
Definition: tte.h:74
rtems_rfs_bitmap_control block_bitmap
Definition: rtems-rfs-group.h:66
rtems_rfs_bitmap_control inode_bitmap
Definition: rtems-rfs-group.h:76