Lines Matching refs:dfd
521 int dfd; member
524 static void set_nameidata(struct nameidata *p, int dfd, struct filename *name) in set_nameidata() argument
528 p->dfd = dfd; in set_nameidata()
2296 } else if (nd->dfd == AT_FDCWD) { in path_init()
2314 struct fd f = fdget_raw(nd->dfd); in path_init()
2421 int filename_lookup(int dfd, struct filename *name, unsigned flags, in filename_lookup() argument
2432 set_nameidata(&nd, dfd, name); in filename_lookup()
2463 static struct filename *filename_parentat(int dfd, struct filename *name, in filename_parentat() argument
2472 set_nameidata(&nd, dfd, name); in filename_parentat()
2696 int user_path_at_empty(int dfd, const char __user *name, unsigned flags, in user_path_at_empty() argument
2699 return filename_lookup(dfd, getname_flags(name, flags, empty), in user_path_at_empty()
2800 filename_mountpoint(int dfd, struct filename *name, struct path *path, in filename_mountpoint() argument
2807 set_nameidata(&nd, dfd, name); in filename_mountpoint()
2835 user_path_mountpoint_at(int dfd, const char __user *name, unsigned int flags, in user_path_mountpoint_at() argument
2838 return filename_mountpoint(dfd, getname(name), path, flags); in user_path_mountpoint_at()
2842 kern_path_mountpoint(int dfd, const char *name, struct path *path, in kern_path_mountpoint() argument
2845 return filename_mountpoint(dfd, getname_kernel(name), path, flags); in kern_path_mountpoint()
3668 struct file *do_filp_open(int dfd, struct filename *pathname, in do_filp_open() argument
3675 set_nameidata(&nd, dfd, pathname); in do_filp_open()
3714 static struct dentry *filename_create(int dfd, struct filename *name, in filename_create() argument
3730 name = filename_parentat(dfd, name, lookup_flags, path, &last, &type); in filename_create()
3785 struct dentry *kern_path_create(int dfd, const char *pathname, in kern_path_create() argument
3788 return filename_create(dfd, getname_kernel(pathname), in kern_path_create()
3802 inline struct dentry *user_path_create(int dfd, const char __user *pathname, in user_path_create() argument
3805 return filename_create(dfd, getname(pathname), path, lookup_flags); in user_path_create()
3860 long do_mknodat(int dfd, const char __user *filename, umode_t mode, in do_mknodat() argument
3872 dentry = user_path_create(dfd, filename, &path, lookup_flags); in do_mknodat()
3904 SYSCALL_DEFINE4(mknodat, int, dfd, const char __user *, filename, umode_t, mode, in SYSCALL_DEFINE4() argument
3907 return do_mknodat(dfd, filename, mode, dev); in SYSCALL_DEFINE4()
3947 long do_mkdirat(int dfd, const char __user *pathname, umode_t mode) in do_mkdirat() argument
3955 dentry = user_path_create(dfd, pathname, &path, lookup_flags); in do_mkdirat()
3972 SYSCALL_DEFINE3(mkdirat, int, dfd, const char __user *, pathname, umode_t, mode) in SYSCALL_DEFINE3() argument
3974 return do_mkdirat(dfd, pathname, mode); in SYSCALL_DEFINE3()
4028 long do_rmdir(int dfd, const char __user *pathname) in do_rmdir() argument
4038 name = filename_parentat(dfd, getname(pathname), lookup_flags, in do_rmdir()
4163 long do_unlinkat(int dfd, struct filename *name) in do_unlinkat() argument
4174 name = filename_parentat(dfd, name, lookup_flags, &path, &last, &type); in do_unlinkat()
4234 SYSCALL_DEFINE3(unlinkat, int, dfd, const char __user *, pathname, int, flag) in SYSCALL_DEFINE3() argument
4240 return do_rmdir(dfd, pathname); in SYSCALL_DEFINE3()
4242 return do_unlinkat(dfd, getname(pathname)); in SYSCALL_DEFINE3()