X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Finclude%2Fvfs.h;h=e3a61d4359394773a110b150f0fa15d0d4503008;hb=33bcf4b3feb0e5e4548548bf3d2a50c52ffb6115;hp=b75710f5cbca9fafb4d28036c9ea42603b32f608;hpb=d46fe712d92551c0084346e6d2627a13f0d45df0;p=tpg%2Facess2.git diff --git a/Kernel/include/vfs.h b/Kernel/include/vfs.h index b75710f5..e3a61d43 100644 --- a/Kernel/include/vfs.h +++ b/Kernel/include/vfs.h @@ -87,12 +87,26 @@ typedef struct sVFS_Node * \} */ + /** + * \name Node State + * \brief Stores the misc information about the node + * \{ + */ int ReferenceCount; //!< Number of times the node is used Uint64 Size; //!< File Size Uint32 Flags; //!< File Flags + /** + * Pointer to cached data (FS Specific) + * \note Inode_* will free when the node is uncached this if needed + */ + void *Data; + /** + * \} + */ + /** * \name Times * \{ @@ -219,7 +233,7 @@ typedef struct sVFS_Node * \param Node Pointer to this node * \param OldName Name of the item to move/delete * \param NewName New name (or NULL if unlinking is wanted) - * \return Boolean Success + * \return Zero on Success, non-zero on error (see errno.h) */ int (*Relink)(struct sVFS_Node *Node, char *OldName, char *NewName);