Lines Matching refs:buf
215 int vfs_fill_dirent(void *buf, ino_t d_ino, char *name, int namelen, unsigned char type, off_t offs… in vfs_fill_dirent() argument
217 struct dirent *dent = (struct dirent *)buf; in vfs_fill_dirent()
220 if (!(verify_area((uint64_t)buf, sizeof(struct dirent) + namelen))) in vfs_fill_dirent()
224 memset(buf, 0, sizeof(struct dirent) + namelen); in vfs_fill_dirent()
274 char *buf = (char *)kzalloc(last_slash + 2, 0); in vfs_mkdir() local
278 strncpy_from_user(buf, path, last_slash); in vfs_mkdir()
280 strncpy(buf, path, last_slash); in vfs_mkdir()
281 buf[last_slash + 1] = '\0'; in vfs_mkdir()
284 struct vfs_dir_entry_t *parent_dir = vfs_path_walk(buf, 0); in vfs_mkdir()
289 kfree(buf); in vfs_mkdir()
292 kfree(buf); in vfs_mkdir()
659 char *buf = (char *)kzalloc(last_slash + 2, 0); in vfs_rmdir() local
663 strncpy_from_user(buf, path, last_slash); in vfs_rmdir()
665 strncpy(buf, path, last_slash); in vfs_rmdir()
666 buf[last_slash + 1] = '\0'; in vfs_rmdir()
668 struct vfs_dir_entry_t *dentry = vfs_path_walk(buf, 0); in vfs_rmdir()
670 kfree(buf); in vfs_rmdir()
811 char *buf = (char *)kzalloc(last_slash + 1, 0); in do_unlink_at() local
815 strncpy_from_user(buf, pathname, last_slash); in do_unlink_at()
817 strncpy(buf, pathname, last_slash); in do_unlink_at()
818 buf[last_slash] = '\0'; in do_unlink_at()
820 struct vfs_dir_entry_t *dentry = vfs_path_walk(buf, 0); in do_unlink_at()
821 kfree(buf); in do_unlink_at()