The mumufs_storage structure is allocated for each regular file. It holds all the data block related information. More...
#include <storage.h>
Data Fields | |
| unsigned char * | buffer |
| unsigned int | buffer_size |
| void * | buffer_version |
| struct rw_semaphore | buffer_lock |
| wait_queue_head_t | blocked_readers |
The mumufs_storage structure is allocated for each regular file. It holds all the data block related information.
Definition at line 24 of file storage.h.
| wait_queue_head_t mumufs_storage::blocked_readers |
Blocked processes list
Definition at line 36 of file storage.h.
Referenced by mumufs_file_poll(), mumufs_file_read(), and mumufs_file_write().
| unsigned char* mumufs_storage::buffer |
Should not exceed the MaxBlockSize
Definition at line 26 of file storage.h.
Referenced by mumufs_file_read(), mumufs_file_write(), and mumufs_free_storage().
struct rw_semaphore mumufs_storage::buffer_lock [read] |
RW lock for the buffer
Definition at line 34 of file storage.h.
Referenced by mumufs_file_poll(), mumufs_file_read(), and mumufs_file_write().
| unsigned int mumufs_storage::buffer_size |
Buffer capacity
Definition at line 27 of file storage.h.
Referenced by mumufs_file_read(), and mumufs_file_write().
Buffer version. It is actually a counter however the last read version is stored in the 'private_data' field of the struct file which is of type void *. So to avoid compiler warnings void * is used here
Definition at line 28 of file storage.h.
Referenced by mumufs_file_poll(), mumufs_file_read(), and mumufs_file_write().