tsfs Struct Reference
[Tiny Simple File System (TSFS), block device based]

Holds information on a TSFS instance. More...

#include <tsfs.h>

Collaboration diagram for tsfs:
Collaboration graph
[legend]

Data Fields

enum status_code status
 Current state of file system, for valid states see enum tsfs_status.
struct tsfs_header header
 TSFS header data.
struct tsfs_filetable_entry filetable [TSFS_MAX_FILES]
 Table over all files present in file system. V1 max is 31 files.
struct block_devicebdev
 Pointer to file system's associated block device.
struct block_requestcurrent_breq
 Current block issued request.
uint8_tbuffer_data
 Buffer to hold block page cache.
struct buffer buffer
 Block buffer metadata.
block_addr_t lba_in_buf
 Number of block-page currently in the tsfs::buffer.
struct tsfs_read_request current_read_request
 Read request currently being handled.
void(* page_read_callback )(struct tsfs *tsfs)
 Internal callback when block device completes a read operation.

Detailed Description

Holds information on a TSFS instance.

Definition at line 153 of file tsfs.h.


Field Documentation

Pointer to file system's associated block device.

Definition at line 168 of file tsfs.h.

Referenced by tsfs_init(), and tsfs_is_ready().

Block buffer metadata.

Definition at line 177 of file tsfs.h.

Buffer to hold block page cache.

Definition at line 174 of file tsfs.h.

Referenced by tsfs_init().

Current block issued request.

Definition at line 171 of file tsfs.h.

Referenced by tsfs_read_page_done().

Read request currently being handled.

Definition at line 183 of file tsfs.h.

Referenced by tsfs_init(), and tsfs_read().

struct tsfs_filetable_entry tsfs::filetable[TSFS_MAX_FILES]

Table over all files present in file system. V1 max is 31 files.

Definition at line 164 of file tsfs.h.

Number of block-page currently in the tsfs::buffer.

Definition at line 180 of file tsfs.h.

Referenced by tsfs_read().

Internal callback when block device completes a read operation.

Definition at line 186 of file tsfs.h.

Referenced by tsfs_read_page_done().

Current state of file system, for valid states see enum tsfs_status.

Definition at line 155 of file tsfs.h.

Referenced by tsfs_init(), tsfs_is_ready(), and tsfs_read().


The documentation for this struct was generated from the following file:
Generated on Thu Apr 29 14:10:03 2010 for display-demo by  doxygen 1.6.3