• Main Page
  • Data Structures
  • Files
  • File List
  • Globals

storage.h

Go to the documentation of this file.
00001 
00012 #ifndef STORAGE_H
00013 #define STORAGE_H
00014 
00015 #include <linux/list.h>
00016 #include <linux/rwsem.h>
00017 #include <linux/fs.h>
00018 
00019 
00024 struct mumufs_storage
00025 {
00026     unsigned char *         buffer;          
00027     unsigned int            buffer_size;     
00028     void *                  buffer_version;  
00034     struct rw_semaphore     buffer_lock;     
00036     wait_queue_head_t       blocked_readers; 
00037 };
00038 
00039 
00040 
00041 
00046 struct mumufs_storage *  mumufs_allocate_storage( void );
00047 
00052 void  mumufs_free_storage( struct mumufs_storage *  element );
00053 
00054 
00055 #endif
00056