Changeset 501 for Whitix/branches/hybrid

Show
Ignore:
Timestamp:
05/13/08 23:59:51 (4 months ago)
Author:
mwhitworth
Message:

Add to comments.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/branches/hybrid/fs/vfs/vcache.c

    r412 r501  
    1919#include <fs/vfs.h> 
    2020#include <malloc.h> 
     21#include <module.h> 
    2122#include <slab.h> 
    2223#include <task.h> 
     
    119120                return NULL; 
    120121 
    121         /* Find if there is already a vnode with said id and filesystem by 
    122         iterating through the vnode list */ 
    123  
     122        /* Find if there is already a vnode with the given id and superblock by 
     123        iterating through the vNode list */ 
    124124        if ((curr=VNodeFind(superBlock,id))) 
    125125                return curr; 
    126126 
     127        /* If not, allocate it. VNodeAlloc calls the superblock's ReadVNode function, 
     128         * which fills in the vNode's information. */ 
    127129        return VNodeAlloc(superBlock,id); 
    128130} 
    129131 
     132SYMBOL_EXPORT(VNodeGet); 
     133 
     134/*********************************************************************** 
     135 * 
     136 * FUNCTION: VNodeGetEmpty 
     137 * 
     138 * DESCRIPTION: Create an empty vNode. 
     139 * 
     140 * PARAMETERS: None 
     141 * 
     142 * RETURNS: A new vNode, created using MemCacheAlloc. 
     143 * 
     144 ***********************************************************************/ 
     145 
    130146struct VNode* VNodeGetEmpty() 
    131147{ 
    132148        return MemCacheAlloc(vNodeCache); 
    133149} 
     150 
     151SYMBOL_EXPORT(VNodeGetEmpty); 
    134152 
    135153/***********************************************************************