Home | History | Annotate | Download | only in fs

Lines Matching refs:bufsize

21 static size_t copy_string(char *buf, size_t ix, size_t bufsize, const char *src)
26 if (ix+1 < bufsize)
31 if (ix < bufsize)
37 static size_t generic_inode_to_path(struct inode *inode, char *dst, size_t bufsize)
47 s = generic_inode_to_path(inode->parent, dst, bufsize);
51 s = copy_string(dst, s, bufsize, "/");
52 s = copy_string(dst, s, bufsize, inode->name);
58 __export size_t realpath(char *dst, const char *src, size_t bufsize)
67 s = this_fs->fs_ops->realpath(this_fs, dst, src, bufsize);
76 s = generic_inode_to_path(file->inode, dst, bufsize);
78 s = copy_string(dst, 0, bufsize, "/");