Lines Matching full:dfd
587 int dfd; member
596 static void __set_nameidata(struct nameidata *p, int dfd, struct filename *name) in __set_nameidata() argument
601 p->dfd = dfd; in __set_nameidata()
610 static inline void set_nameidata(struct nameidata *p, int dfd, struct filename *name, in set_nameidata() argument
613 __set_nameidata(p, dfd, name); in set_nameidata()
2391 /* Absolute pathname -- fetch the root (LOOKUP_IN_ROOT uses nd->dfd). */ in path_init()
2400 if (nd->dfd == AT_FDCWD) { in path_init()
2417 struct fd f = fdget_raw(nd->dfd); in path_init()
2504 int filename_lookup(int dfd, struct filename *name, unsigned flags, in filename_lookup() argument
2511 set_nameidata(&nd, dfd, name, root); in filename_lookup()
2543 static int __filename_parentat(int dfd, struct filename *name, in __filename_parentat() argument
2553 set_nameidata(&nd, dfd, name, root); in __filename_parentat()
2568 static int filename_parentat(int dfd, struct filename *name, in filename_parentat() argument
2572 return __filename_parentat(dfd, name, flags, parent, last, type, NULL); in filename_parentat()
2905 int user_path_at_empty(int dfd, const char __user *name, unsigned flags, in user_path_at_empty() argument
2909 int ret = filename_lookup(dfd, filename, flags, path, NULL); in user_path_at_empty()
3808 struct file *do_filp_open(int dfd, struct filename *pathname, in do_filp_open() argument
3815 set_nameidata(&nd, dfd, pathname, NULL); in do_filp_open()
3851 static struct dentry *filename_create(int dfd, struct filename *name, in filename_create() argument
3863 error = filename_parentat(dfd, name, reval_flag, path, &last, &type); in filename_create()
3919 struct dentry *kern_path_create(int dfd, const char *pathname, in kern_path_create() argument
3923 struct dentry *res = filename_create(dfd, filename, path, lookup_flags); in kern_path_create()
3939 inline struct dentry *user_path_create(int dfd, const char __user *pathname, in user_path_create() argument
3943 struct dentry *res = filename_create(dfd, filename, path, lookup_flags); in user_path_create()
4015 static int do_mknodat(int dfd, struct filename *name, umode_t mode, in do_mknodat() argument
4028 dentry = filename_create(dfd, name, &path, lookup_flags); in do_mknodat()
4066 SYSCALL_DEFINE4(mknodat, int, dfd, const char __user *, filename, umode_t, mode, in SYSCALL_DEFINE4() argument
4069 return do_mknodat(dfd, getname(filename), mode, dev); in SYSCALL_DEFINE4()
4120 int do_mkdirat(int dfd, struct filename *name, umode_t mode) in do_mkdirat() argument
4128 dentry = filename_create(dfd, name, &path, lookup_flags); in do_mkdirat()
4149 SYSCALL_DEFINE3(mkdirat, int, dfd, const char __user *, pathname, umode_t, mode) in SYSCALL_DEFINE3() argument
4151 return do_mkdirat(dfd, getname(pathname), mode); in SYSCALL_DEFINE3()
4214 int do_rmdir(int dfd, struct filename *name) in do_rmdir() argument
4223 error = filename_parentat(dfd, name, lookup_flags, &path, &last, &type); in do_rmdir()
4353 int do_unlinkat(int dfd, struct filename *name) in do_unlinkat() argument
4364 error = filename_parentat(dfd, name, lookup_flags, &path, &last, &type); in do_unlinkat()
4427 SYSCALL_DEFINE3(unlinkat, int, dfd, const char __user *, pathname, int, flag) in SYSCALL_DEFINE3() argument
4433 return do_rmdir(dfd, getname(pathname)); in SYSCALL_DEFINE3()
4434 return do_unlinkat(dfd, getname(pathname)); in SYSCALL_DEFINE3()