Lines Matching refs:fn
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);
410 * @param [out] fn VNode of the entry if found.
416 O2FS_Lookup(VNode *dn, VNode **fn, const char *name)
446 *fn = O2FSLoadVNode(vfs, &dir[e].objId);
459 O2FS_Open(VNode *fn)
465 O2FS_Close(VNode *fn)
475 * @param [in] fn VNode of the file to stat.
481 O2FS_Stat(VNode *fn, struct stat *statinfo)
483 VFS *vfs = fn->vfs;
486 BufCacheEntry *fileEntry = (BufCacheEntry *)fn->fsptr;
504 * @param [in] fn VNode of the file.
512 O2FS_Read(VNode *fn, void *buf, uint64_t off, uint64_t len)
515 VFS *vfs = fn->vfs;
518 BufCacheEntry *fileEntry = (BufCacheEntry *)fn->fsptr;
545 status = O2FSResolveBuf(fn, b, &entry);
570 * @param [in] fn VNode of the file.
578 O2FS_Write(VNode *fn, void *buf, uint64_t off, uint64_t len)
581 VFS *vfs = fn->vfs;
584 BufCacheEntry *fileEntry = (BufCacheEntry *)fn->fsptr;
594 status = O2FSGrowVNode(fn, off+len);
611 status = O2FSResolveBuf(fn, b, &entry);
638 * @param [in] fn VNode of the directory.
646 O2FS_ReadDir(VNode *fn, void *buf, uint64_t len, uint64_t *off)
650 BufCacheEntry *fileEntry = (BufCacheEntry *)fn->fsptr;
663 status = O2FS_Read(fn, &dirEntry, *off, sizeof(dirEntry));