Show
Ignore:
Timestamp:
08/21/08 21:46:06 (4 years ago)
Author:
mwhitworth
Message:

Add info.h, icfs.h and kfs.h for infofs/configfs layer.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/trunk/include/fs/super.h

    r670 r853  
    2828#include <typedefs.h> 
    2929 
    30 struct SuperBlockOps 
    31 { 
    32         /* General vNode functions */ 
    33         int (*allocVNode)(struct VNode* vNode); 
    34         int (*freeVNode)(struct VNode* vNode); 
    35         int (*readVNode)(struct VNode* vNode); 
    36         int (*readVNodeWithData)(struct VNode* vNode, void* data); 
    37         int (*writeVNode)(struct VNode* vNode); 
    38  
    39         /* General superblock functions */ 
    40         int (*writeSuper)(struct VfsSuperBlock* superBlock); 
    41 }; 
     30struct VNode; 
    4231 
    4332struct VfsSuperBlock 
     
    5241        struct ListHead vNodeList,sbList; 
    5342        Spinlock nodeListLock; 
     43}; 
     44 
     45struct SuperBlockOps 
     46{ 
     47        /* General vNode functions */ 
     48        int (*allocVNode)(struct VNode* vNode); 
     49        int (*freeVNode)(struct VNode* vNode); 
     50        int (*readVNode)(struct VNode* vNode); 
     51        int (*readVNodeWithData)(struct VNode* vNode, void* data); 
     52        int (*writeVNode)(struct VNode* vNode); 
     53        int (*dirtyVNode)(struct VNode* vNode); 
     54 
     55        /* General superblock functions */ 
     56        int (*writeSuper)(struct VfsSuperBlock* superBlock); 
     57        int (*freeSuper)(struct VfsSuperBlock* superBlock); 
    5458}; 
    5559