Lines Matching refs:VNode
20 int O2FS_GetRoot(VFS *fs, VNode **dn);
21 int O2FS_Lookup(VNode *dn, VNode **fn, const char *name);
22 int O2FS_Open(VNode *fn);
23 int O2FS_Close(VNode *fn);
24 int O2FS_Stat(VNode *fn, struct stat *statinfo);
25 int O2FS_Read(VNode *fn, void *buf, uint64_t off, uint64_t len);
26 int O2FS_Write(VNode *fn, void *buf, uint64_t off, uint64_t len);
27 int O2FS_ReadDir(VNode *fn, void *buf, uint64_t len, uint64_t *off);
204 * Load a VNode from the disk given an ObjID.
209 VNode *
213 VNode *vn;
243 Spinlock_Init(&vn->lock, "VNode Lock", SPINLOCK_TYPE_NORMAL);
254 * Grow a VNode.
263 O2FSGrowVNode(VNode *vn, uint64_t filesz)
297 * Increment VNode reference count.
299 * @param [in] vn VNode.
302 O2FSRetainVNode(VNode *vn)
310 * Decrement VNode reference count and release it if reaches zero.
312 * @param [in] vn VNode.
315 O2FSReleaseVNode(VNode *vn)
326 O2FSResolveBuf(VNode *vn, uint64_t b, BufCacheEntry **dentp)
348 * @param [out] dn VNode of the root directory.
353 O2FS_GetRoot(VFS *fs, VNode **dn)
356 VNode *vn;
388 Spinlock_Init(&vn->lock, "VNode Lock", SPINLOCK_TYPE_NORMAL);
409 * @param [in] vn VNode of the directory to look through.
410 * @param [out] fn VNode of the entry if found.
416 O2FS_Lookup(VNode *dn, VNode **fn, const char *name)
459 O2FS_Open(VNode *fn)
465 O2FS_Close(VNode *fn)
473 * Stat a VNode.
475 * @param [in] fn VNode of the file to stat.
481 O2FS_Stat(VNode *fn, struct stat *statinfo)
502 * Read from a VNode.
504 * @param [in] fn VNode of the file.
512 O2FS_Read(VNode *fn, void *buf, uint64_t off, uint64_t len)
568 * Write to a VNode.
570 * @param [in] fn VNode of the file.
578 O2FS_Write(VNode *fn, void *buf, uint64_t off, uint64_t len)
638 * @param [in] fn VNode of the directory.
646 O2FS_ReadDir(VNode *fn, void *buf, uint64_t len, uint64_t *off)