Lines Matching full:dfd
583 int dfd; member
592 static void __set_nameidata(struct nameidata *p, int dfd, struct filename *name) in __set_nameidata() argument
597 p->dfd = dfd; in __set_nameidata()
606 static inline void set_nameidata(struct nameidata *p, int dfd, struct filename *name, in set_nameidata() argument
609 __set_nameidata(p, dfd, name); in set_nameidata()
2382 /* Absolute pathname -- fetch the root (LOOKUP_IN_ROOT uses nd->dfd). */ in path_init()
2391 if (nd->dfd == AT_FDCWD) { in path_init()
2408 struct fd f = fdget_raw(nd->dfd); in path_init()
2495 int filename_lookup(int dfd, struct filename *name, unsigned flags, in filename_lookup() argument
2502 set_nameidata(&nd, dfd, name, root); in filename_lookup()
2534 static int filename_parentat(int dfd, struct filename *name, in filename_parentat() argument
2543 set_nameidata(&nd, dfd, name, NULL); in filename_parentat()
2872 int user_path_at_empty(int dfd, const char __user *name, unsigned flags, in user_path_at_empty() argument
2876 int ret = filename_lookup(dfd, filename, flags, path, NULL); in user_path_at_empty()
3733 struct file *do_filp_open(int dfd, struct filename *pathname, in do_filp_open() argument
3740 set_nameidata(&nd, dfd, pathname, NULL); in do_filp_open()
3776 static struct dentry *filename_create(int dfd, struct filename *name, in filename_create() argument
3788 error = filename_parentat(dfd, name, reval_flag, path, &last, &type); in filename_create()
3843 struct dentry *kern_path_create(int dfd, const char *pathname, in kern_path_create() argument
3847 struct dentry *res = filename_create(dfd, filename, path, lookup_flags); in kern_path_create()
3863 inline struct dentry *user_path_create(int dfd, const char __user *pathname, in user_path_create() argument
3867 struct dentry *res = filename_create(dfd, filename, path, lookup_flags); in user_path_create()
3939 static int do_mknodat(int dfd, struct filename *name, umode_t mode, in do_mknodat() argument
3952 dentry = filename_create(dfd, name, &path, lookup_flags); in do_mknodat()
3990 SYSCALL_DEFINE4(mknodat, int, dfd, const char __user *, filename, umode_t, mode, in SYSCALL_DEFINE4() argument
3993 return do_mknodat(dfd, getname(filename), mode, dev); in SYSCALL_DEFINE4()
4043 int do_mkdirat(int dfd, struct filename *name, umode_t mode) in do_mkdirat() argument
4051 dentry = filename_create(dfd, name, &path, lookup_flags); in do_mkdirat()
4074 SYSCALL_DEFINE3(mkdirat, int, dfd, const char __user *, pathname, umode_t, mode) in SYSCALL_DEFINE3() argument
4076 return do_mkdirat(dfd, getname(pathname), mode); in SYSCALL_DEFINE3()
4139 int do_rmdir(int dfd, struct filename *name) in do_rmdir() argument
4149 error = filename_parentat(dfd, name, lookup_flags, &path, &last, &type); in do_rmdir()
4280 int do_unlinkat(int dfd, struct filename *name) in do_unlinkat() argument
4291 error = filename_parentat(dfd, name, lookup_flags, &path, &last, &type); in do_unlinkat()
4356 SYSCALL_DEFINE3(unlinkat, int, dfd, const char __user *, pathname, int, flag) in SYSCALL_DEFINE3() argument
4362 return do_rmdir(dfd, getname(pathname)); in SYSCALL_DEFINE3()
4363 return do_unlinkat(dfd, getname(pathname)); in SYSCALL_DEFINE3()