Home
last modified time | relevance | path

Searched refs:pathname (Results 1 – 15 of 15) sorted by relevance

/fs/
Dxattr.c469 static int path_setxattr(const char __user *pathname, in path_setxattr() argument
476 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_setxattr()
492 SYSCALL_DEFINE5(setxattr, const char __user *, pathname, in SYSCALL_DEFINE5() argument
496 return path_setxattr(pathname, name, value, size, flags, LOOKUP_FOLLOW); in SYSCALL_DEFINE5()
499 SYSCALL_DEFINE5(lsetxattr, const char __user *, pathname, in SYSCALL_DEFINE5() argument
503 return path_setxattr(pathname, name, value, size, flags, 0); in SYSCALL_DEFINE5()
567 static ssize_t path_getxattr(const char __user *pathname, in path_getxattr() argument
574 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_getxattr()
586 SYSCALL_DEFINE4(getxattr, const char __user *, pathname, in SYSCALL_DEFINE4() argument
589 return path_getxattr(pathname, name, value, size, LOOKUP_FOLLOW); in SYSCALL_DEFINE4()
[all …]
Dstatfs.c81 int user_statfs(const char __user *pathname, struct kstatfs *st) in user_statfs() argument
87 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in user_statfs()
176 SYSCALL_DEFINE2(statfs, const char __user *, pathname, struct statfs __user *, buf) in SYSCALL_DEFINE2() argument
179 int error = user_statfs(pathname, &st); in SYSCALL_DEFINE2()
185 SYSCALL_DEFINE3(statfs64, const char __user *, pathname, size_t, sz, struct statfs64 __user *, buf) in SYSCALL_DEFINE3() argument
191 error = user_statfs(pathname, &st); in SYSCALL_DEFINE3()
286 COMPAT_SYSCALL_DEFINE2(statfs, const char __user *, pathname, struct compat_statfs __user *, buf) in COMPAT_SYSCALL_DEFINE2() argument
289 int error = user_statfs(pathname, &tmp); in COMPAT_SYSCALL_DEFINE2()
329 COMPAT_SYSCALL_DEFINE3(statfs64, const char __user *, pathname, compat_size_t, sz, struct compat_st… in COMPAT_SYSCALL_DEFINE3() argument
337 error = user_statfs(pathname, &tmp); in COMPAT_SYSCALL_DEFINE3()
Dnamei.c3626 struct file *do_filp_open(int dfd, struct filename *pathname, in do_filp_open() argument
3633 set_nameidata(&nd, dfd, pathname); in do_filp_open()
3743 struct dentry *kern_path_create(int dfd, const char *pathname, in kern_path_create() argument
3746 return filename_create(dfd, getname_kernel(pathname), in kern_path_create()
3760 inline struct dentry *user_path_create(int dfd, const char __user *pathname, in user_path_create() argument
3763 return filename_create(dfd, getname(pathname), path, lookup_flags); in user_path_create()
3899 SYSCALL_DEFINE3(mkdirat, int, dfd, const char __user *, pathname, umode_t, mode) in SYSCALL_DEFINE3() argument
3907 dentry = user_path_create(dfd, pathname, &path, lookup_flags); in SYSCALL_DEFINE3()
3924 SYSCALL_DEFINE2(mkdir, const char __user *, pathname, umode_t, mode) in SYSCALL_DEFINE2() argument
3926 return sys_mkdirat(AT_FDCWD, pathname, mode); in SYSCALL_DEFINE2()
[all …]
Dinternal.h110 extern struct file *do_filp_open(int dfd, struct filename *pathname,
Dopen.c138 static long do_sys_truncate(const char __user *pathname, loff_t length) in do_sys_truncate() argument
148 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in do_sys_truncate()
1149 SYSCALL_DEFINE2(creat, const char __user *, pathname, umode_t, mode) in SYSCALL_DEFINE2() argument
1151 return sys_open(pathname, O_CREAT | O_WRONLY | O_TRUNC, mode); in SYSCALL_DEFINE2()
Ddirect-io.c228 char pathname[128]; in dio_warn_stale_pagecache() local
234 path = file_path(filp, pathname, sizeof(pathname)); in dio_warn_stale_pagecache()
Dblock_dev.c2081 struct block_device *lookup_bdev(const char *pathname) in lookup_bdev() argument
2088 if (!pathname || !*pathname) in lookup_bdev()
2091 error = kern_path(pathname, LOOKUP_FOLLOW, &path); in lookup_bdev()
Dstat.c382 SYSCALL_DEFINE4(readlinkat, int, dfd, const char __user *, pathname, in SYSCALL_DEFINE4() argument
394 error = user_path_at_empty(dfd, pathname, lookup_flags, &path, &empty); in SYSCALL_DEFINE4()
/fs/notify/fanotify/
Dfanotify_user.c822 const char __user *, pathname) in SYSCALL_DEFINE5() argument
832 __func__, fanotify_fd, flags, dfd, pathname, mask); in SYSCALL_DEFINE5()
894 ret = fanotify_find_path(dfd, pathname, &path, flags); in SYSCALL_DEFINE5()
932 const char __user *, pathname) in COMPAT_SYSCALL_DEFINE6() argument
940 dfd, pathname); in COMPAT_SYSCALL_DEFINE6()
/fs/nfs/
Dnfs4namespace.c33 static inline char *nfs4_pathname_string(const struct nfs4_pathname *pathname, in nfs4_pathname_string() argument
42 n = pathname->ncomponents; in nfs4_pathname_string()
44 const struct nfs4_string *component = &pathname->components[n]; in nfs4_pathname_string()
Dmount_clnt.c298 static void encode_mntdirpath(struct xdr_stream *xdr, const char *pathname) in encode_mntdirpath() argument
300 const u32 pathname_len = strlen(pathname); in encode_mntdirpath()
304 xdr_encode_opaque(p, pathname, pathname_len); in encode_mntdirpath()
/fs/autofs4/
Ddev-ioctl.c213 static int find_autofs_mount(const char *pathname, in find_autofs_mount() argument
221 err = kern_path_mountpoint(AT_FDCWD, pathname, &path, 0); in find_autofs_mount()
/fs/notify/inotify/
Dinotify_user.c668 SYSCALL_DEFINE3(inotify_add_watch, int, fd, const char __user *, pathname, in SYSCALL_DEFINE3() argument
711 ret = inotify_find_inode(pathname, &path, flags); in SYSCALL_DEFINE3()
/fs/proc/
Dbase.c1648 char *pathname; in do_proc_readlink() local
1654 pathname = d_path(path, tmp, PAGE_SIZE); in do_proc_readlink()
1655 len = PTR_ERR(pathname); in do_proc_readlink()
1656 if (IS_ERR(pathname)) in do_proc_readlink()
1658 len = tmp + PAGE_SIZE - 1 - pathname; in do_proc_readlink()
1662 if (copy_to_user(buffer, pathname, len)) in do_proc_readlink()
/fs/ext4/
Dsuper.c526 char pathname[80], *path; in __ext4_error_file() local
534 path = file_path(file, pathname, sizeof(pathname)); in __ext4_error_file()