Lines Matching refs:dfd
524 int dfd; member
529 static void set_nameidata(struct nameidata *p, int dfd, struct filename *name) in set_nameidata() argument
533 p->dfd = dfd; in set_nameidata()
2344 if (nd->dfd == AT_FDCWD) { in path_init()
2361 struct fd f = fdget_raw(nd->dfd); in path_init()
2448 int filename_lookup(int dfd, struct filename *name, unsigned flags, in filename_lookup() argument
2459 set_nameidata(&nd, dfd, name); in filename_lookup()
2491 static struct filename *filename_parentat(int dfd, struct filename *name, in filename_parentat() argument
2500 set_nameidata(&nd, dfd, name); in filename_parentat()
2737 int user_path_at_empty(int dfd, const char __user *name, unsigned flags, in user_path_at_empty() argument
2740 return filename_lookup(dfd, getname_flags(name, flags, empty), in user_path_at_empty()
3528 struct file *do_filp_open(int dfd, struct filename *pathname, in do_filp_open() argument
3535 set_nameidata(&nd, dfd, pathname); in do_filp_open()
3574 static struct dentry *filename_create(int dfd, struct filename *name, in filename_create() argument
3590 name = filename_parentat(dfd, name, lookup_flags, path, &last, &type); in filename_create()
3645 struct dentry *kern_path_create(int dfd, const char *pathname, in kern_path_create() argument
3648 return filename_create(dfd, getname_kernel(pathname), in kern_path_create()
3662 inline struct dentry *user_path_create(int dfd, const char __user *pathname, in user_path_create() argument
3665 return filename_create(dfd, getname(pathname), path, lookup_flags); in user_path_create()
3717 static long do_mknodat(int dfd, const char __user *filename, umode_t mode, in do_mknodat() argument
3729 dentry = user_path_create(dfd, filename, &path, lookup_flags); in do_mknodat()
3760 SYSCALL_DEFINE4(mknodat, int, dfd, const char __user *, filename, umode_t, mode, in SYSCALL_DEFINE4() argument
3763 return do_mknodat(dfd, filename, mode, dev); in SYSCALL_DEFINE4()
3797 static long do_mkdirat(int dfd, const char __user *pathname, umode_t mode) in do_mkdirat() argument
3805 dentry = user_path_create(dfd, pathname, &path, lookup_flags); in do_mkdirat()
3821 SYSCALL_DEFINE3(mkdirat, int, dfd, const char __user *, pathname, umode_t, mode) in SYSCALL_DEFINE3() argument
3823 return do_mkdirat(dfd, pathname, mode); in SYSCALL_DEFINE3()
3870 long do_rmdir(int dfd, struct filename *name) in do_rmdir() argument
3879 name = filename_parentat(dfd, name, lookup_flags, in do_rmdir()
3999 long do_unlinkat(int dfd, struct filename *name) in do_unlinkat() argument
4010 name = filename_parentat(dfd, name, lookup_flags, &path, &last, &type); in do_unlinkat()
4070 SYSCALL_DEFINE3(unlinkat, int, dfd, const char __user *, pathname, int, flag) in SYSCALL_DEFINE3() argument
4076 return do_rmdir(dfd, getname(pathname)); in SYSCALL_DEFINE3()
4077 return do_unlinkat(dfd, getname(pathname)); in SYSCALL_DEFINE3()