Home
last modified time | relevance | path

Searched refs:__user (Results 1 – 25 of 155) sorted by relevance

1234567

/fs/
Dselect.c298 void __user *p, in poll_select_finish()
389 int get_fd_set(unsigned long nr, void __user *ufdset, unsigned long *fdset) in get_fd_set()
400 set_fd_set(unsigned long nr, void __user *ufdset, unsigned long *fdset) in set_fd_set()
624 int core_sys_select(int n, fd_set __user *inp, fd_set __user *outp, in core_sys_select()
625 fd_set __user *exp, struct timespec64 *end_time) in core_sys_select()
703 static int kern_select(int n, fd_set __user *inp, fd_set __user *outp, in kern_select()
704 fd_set __user *exp, struct timeval __user *tvp) in kern_select()
725 SYSCALL_DEFINE5(select, int, n, fd_set __user *, inp, fd_set __user *, outp, in SYSCALL_DEFINE5() argument
726 fd_set __user *, exp, struct timeval __user *, tvp) in SYSCALL_DEFINE5() argument
731 static long do_pselect(int n, fd_set __user *inp, fd_set __user *outp, in do_pselect()
[all …]
Dutimes.c88 long do_utimes(int dfd, const char __user *filename, struct timespec64 *times, in do_utimes()
137 SYSCALL_DEFINE4(utimensat, int, dfd, const char __user *, filename, in SYSCALL_DEFINE4() argument
138 struct __kernel_timespec __user *, utimes, int, flags) in SYSCALL_DEFINE4() argument
163 static long do_futimesat(int dfd, const char __user *filename, in do_futimesat()
164 struct timeval __user *utimes) in do_futimesat()
192 SYSCALL_DEFINE3(futimesat, int, dfd, const char __user *, filename, in SYSCALL_DEFINE3() argument
193 struct timeval __user *, utimes) in SYSCALL_DEFINE3() argument
198 SYSCALL_DEFINE2(utimes, char __user *, filename, in SYSCALL_DEFINE2() argument
199 struct timeval __user *, utimes) in SYSCALL_DEFINE2() argument
204 SYSCALL_DEFINE2(utime, char __user *, filename, struct utimbuf __user *, times) in SYSCALL_DEFINE2() argument
[all …]
Dstat.c168 int vfs_statx(int dfd, const char __user *filename, int flags, in vfs_statx()
209 static int cp_old_stat(struct kstat *stat, struct __old_kernel_stat __user * statbuf) in cp_old_stat()
246 SYSCALL_DEFINE2(stat, const char __user *, filename, in SYSCALL_DEFINE2() argument
247 struct __old_kernel_stat __user *, statbuf) in SYSCALL_DEFINE2() argument
259 SYSCALL_DEFINE2(lstat, const char __user *, filename, in SYSCALL_DEFINE2() argument
260 struct __old_kernel_stat __user *, statbuf) in SYSCALL_DEFINE2() argument
272 SYSCALL_DEFINE2(fstat, unsigned int, fd, struct __old_kernel_stat __user *, statbuf) in SYSCALL_DEFINE2() argument
297 static int cp_new_stat(struct kstat *stat, struct stat __user *statbuf) in cp_new_stat()
336 SYSCALL_DEFINE2(newstat, const char __user *, filename, in SYSCALL_DEFINE2() argument
337 struct stat __user *, statbuf) in SYSCALL_DEFINE2() argument
[all …]
Dreaddir.c32 char __user *dst = (_dst); \
139 struct old_linux_dirent __user * dirent;
148 struct old_linux_dirent __user * dirent; in fillonedir()
180 struct old_linux_dirent __user *, dirent, unsigned int, count) in SYSCALL_DEFINE3() argument
215 struct linux_dirent __user * current_dir;
224 struct linux_dirent __user *dirent, *prev; in filldir()
247 prev = (void __user *) dirent - prev_reclen; in filldir()
255 unsafe_put_user(d_type, (char __user *) dirent + reclen - 1, efault_end); in filldir()
259 buf->current_dir = (void __user *)dirent + reclen; in filldir()
271 struct linux_dirent __user *, dirent, unsigned int, count) in SYSCALL_DEFINE3() argument
[all …]
Dxattr.c484 setxattr(struct dentry *d, const char __user *name, const void __user *value, in setxattr()
528 static int path_setxattr(const char __user *pathname, in path_setxattr()
529 const char __user *name, const void __user *value, in path_setxattr()
551 SYSCALL_DEFINE5(setxattr, const char __user *, pathname, in SYSCALL_DEFINE5() argument
552 const char __user *, name, const void __user *, value, in SYSCALL_DEFINE5() argument
558 SYSCALL_DEFINE5(lsetxattr, const char __user *, pathname, in SYSCALL_DEFINE5() argument
559 const char __user *, name, const void __user *, value, in SYSCALL_DEFINE5() argument
565 SYSCALL_DEFINE5(fsetxattr, int, fd, const char __user *, name, in SYSCALL_DEFINE5() argument
566 const void __user *,value, size_t, size, int, flags) in SYSCALL_DEFINE5() argument
587 getxattr(struct dentry *d, const char __user *name, void __user *value, in getxattr()
[all …]
Dinternal.h63 extern int user_path_mountpoint_at(int, const char __user *, unsigned int, struct path *);
66 long do_mknodat(int dfd, const char __user *filename, umode_t mode,
68 long do_mkdirat(int dfd, const char __user *pathname, umode_t mode);
69 long do_rmdir(int dfd, const char __user *pathname);
71 long do_symlinkat(const char __user *oldname, int newdfd,
72 const char __user *newname);
73 int do_linkat(int olddfd, const char __user *oldname, int newdfd,
74 const char __user *newname, int flags);
79 extern void *copy_mount_options(const void __user *);
80 extern char *copy_mount_string(const void __user *);
[all …]
Dstatfs.c95 int user_statfs(const char __user *pathname, struct kstatfs *st) in user_statfs()
124 static int do_statfs_native(struct kstatfs *st, struct statfs __user *p) in do_statfs_native()
166 static int do_statfs64(struct kstatfs *st, struct statfs64 __user *p) in do_statfs64()
190 SYSCALL_DEFINE2(statfs, const char __user *, pathname, struct statfs __user *, buf) in SYSCALL_DEFINE2() argument
199 SYSCALL_DEFINE3(statfs64, const char __user *, pathname, size_t, sz, struct statfs64 __user *, buf) in SYSCALL_DEFINE3() argument
211 SYSCALL_DEFINE2(fstatfs, unsigned int, fd, struct statfs __user *, buf) in SYSCALL_DEFINE2() argument
220 SYSCALL_DEFINE3(fstatfs64, unsigned int, fd, size_t, sz, struct statfs64 __user *, buf) in SYSCALL_DEFINE3() argument
246 SYSCALL_DEFINE2(ustat, unsigned, dev, struct ustat __user *, ubuf) in SYSCALL_DEFINE2() argument
262 static int put_compat_statfs(struct compat_statfs __user *ubuf, struct kstatfs *kbuf) in put_compat_statfs()
300 COMPAT_SYSCALL_DEFINE2(statfs, const char __user *, pathname, struct compat_statfs __user *, buf) in COMPAT_SYSCALL_DEFINE2() argument
[all …]
Dcompat_ioctl.c125 static int sg_build_iovec(sg_io_hdr_t __user *sgio, void __user *dxferp, u16 iovec_count) in sg_build_iovec()
127 sg_iovec_t __user *iov = (sg_iovec_t __user *) (sgio + 1); in sg_build_iovec()
128 sg_iovec32_t __user *iov32 = dxferp; in sg_build_iovec()
147 sg_io_hdr32_t __user *sgio32) in sg_ioctl_trans()
149 sg_io_hdr_t __user *sgio; in sg_ioctl_trans()
152 void __user *dxferp; in sg_ioctl_trans()
165 void __user *top = compat_alloc_user_space(0); in sg_ioctl_trans()
166 void __user *new = compat_alloc_user_space(sizeof(sg_io_hdr_t) + in sg_ioctl_trans()
194 unsigned char __user *cmdp; in sg_ioctl_trans()
195 unsigned char __user *sbp; in sg_ioctl_trans()
[all …]
Dbinfmt_aout.c59 static unsigned long __user *create_aout_tables(char __user *p, struct linux_binprm * bprm) in create_aout_tables()
61 char __user * __user *argv; in create_aout_tables()
62 char __user * __user *envp; in create_aout_tables()
63 unsigned long __user *sp; in create_aout_tables()
67 sp = (void __user *)((-(unsigned long)sizeof(char *)) & (unsigned long) p); in create_aout_tables()
82 envp = (char __user * __user *) sp; in create_aout_tables()
84 argv = (char __user * __user *) sp; in create_aout_tables()
247 (unsigned long) create_aout_tables((char __user *) bprm->p, bprm); in load_aout_binary()
Dread_write.c336 unsigned long, offset_low, loff_t __user *, result, in SYSCALL_DEFINE5() argument
403 static ssize_t new_sync_read(struct file *filp, char __user *buf, size_t len, loff_t *ppos) in new_sync_read()
421 ssize_t __vfs_read(struct file *file, char __user *buf, size_t count, in __vfs_read()
440 result = vfs_read(file, (void __user *)buf, count, pos); in kernel_read()
446 ssize_t vfs_read(struct file *file, char __user *buf, size_t count, loff_t *pos) in vfs_read()
472 static ssize_t new_sync_write(struct file *filp, const char __user *buf, size_t len, loff_t *ppos) in new_sync_write()
474 struct iovec iov = { .iov_base = (void __user *)buf, .iov_len = len }; in new_sync_write()
490 static ssize_t __vfs_write(struct file *file, const char __user *p, in __vfs_write()
504 const char __user *p; in __kernel_write()
512 p = (__force const char __user *)buf; in __kernel_write()
[all …]
Dbinfmt_flat.c125 char __user *p; in create_flat_tables()
126 unsigned long __user *sp; in create_flat_tables()
129 p = (char __user *)arg_start; in create_flat_tables()
130 sp = (unsigned long __user *)current->mm->start_stack; in create_flat_tables()
139 sp = (unsigned long __user *)current->mm->start_stack; in create_flat_tables()
388 unsigned long __user *ptr; in old_reloc()
393 ptr = (unsigned long __user *)(current->mm->start_code + r.reloc.offset); in old_reloc()
395 ptr = (unsigned long __user *)(current->mm->start_data + r.reloc.offset); in old_reloc()
425 static inline u32 __user *skip_got_header(u32 __user *rp) in skip_got_header()
456 __be32 __user *reloc; in load_flat_file()
[all …]
Dexec.c121 SYSCALL_DEFINE1(uselib, const char __user *, library) in SYSCALL_DEFINE1() argument
394 const char __user *const __user *native;
396 const compat_uptr_t __user *compat;
401 static const char __user *get_user_arg_ptr(struct user_arg_ptr argv, int nr) in get_user_arg_ptr()
403 const char __user *native; in get_user_arg_ptr()
431 const char __user *p = get_user_arg_ptr(argv, i); in count()
518 const char __user *str; in copy_strings()
610 .ptr.native = (const char __user *const __user *)__argv, in copy_strings_kernel()
1013 ssize_t res = vfs_read(file, (void __user *)addr, len, &pos); in read_code()
1917 const char __user *const __user *__argv, in do_execve()
[all …]
Dfhandle.c18 struct file_handle __user *ufh, in do_sys_name_to_handle()
19 int __user *mnt_id) in do_sys_name_to_handle()
93 SYSCALL_DEFINE5(name_to_handle_at, int, dfd, const char __user *, name, in SYSCALL_DEFINE5() argument
94 struct file_handle __user *, handle, int __user *, mnt_id, in SYSCALL_DEFINE5() argument
167 static int handle_to_path(int mountdirfd, struct file_handle __user *ufh, in handle_to_path()
215 static long do_handle_open(int mountdirfd, struct file_handle __user *ufh, in do_handle_open()
257 struct file_handle __user *, handle, in SYSCALL_DEFINE3() argument
275 struct file_handle __user *, handle, int, flags) in COMPAT_SYSCALL_DEFINE3() argument
Dioctl.c55 static int ioctl_fibmap(struct file *filp, int __user *p) in ioctl_fibmap()
94 struct fiemap_extent __user *dest = fieinfo->fi_extents_start; in fiemap_fill_next_extent()
181 struct fiemap __user *ufiemap = (struct fiemap __user *) arg; in ioctl_fiemap()
248 static long ioctl_file_clone_range(struct file *file, void __user *argp) in ioctl_file_clone_range()
470 int ioctl_preallocate(struct file *filp, void __user *argp) in ioctl_preallocate()
498 int __user *p = (int __user *)arg; in file_ioctl()
513 static int ioctl_fionbio(struct file *filp, int __user *argp) in ioctl_fionbio()
537 int __user *argp) in ioctl_fioasync()
588 static int ioctl_file_dedupe_range(struct file *file, void __user *arg) in ioctl_file_dedupe_range()
590 struct file_dedupe_range __user *argp = arg; in ioctl_file_dedupe_range()
[all …]
Dopen.c121 long do_sys_truncate(const char __user *pathname, loff_t length) in do_sys_truncate()
143 SYSCALL_DEFINE2(truncate, const char __user *, path, long, length) in SYSCALL_DEFINE2() argument
149 COMPAT_SYSCALL_DEFINE2(truncate, const char __user *, path, compat_off_t, length) in COMPAT_SYSCALL_DEFINE2() argument
217 SYSCALL_DEFINE2(truncate64, const char __user *, path, loff_t, length) in SYSCALL_DEFINE2() argument
348 long do_faccessat(int dfd, const char __user *filename, int mode) in do_faccessat()
443 SYSCALL_DEFINE3(faccessat, int, dfd, const char __user *, filename, int, mode) in SYSCALL_DEFINE3() argument
448 SYSCALL_DEFINE2(access, const char __user *, filename, int, mode) in SYSCALL_DEFINE2() argument
453 int ksys_chdir(const char __user *filename) in ksys_chdir()
479 SYSCALL_DEFINE1(chdir, const char __user *, filename) in SYSCALL_DEFINE1() argument
506 int ksys_chroot(const char __user *filename) in ksys_chroot()
[all …]
Dsignalfd.c71 static int signalfd_copyinfo(struct signalfd_siginfo __user *uinfo, in signalfd_copyinfo()
202 static ssize_t signalfd_read(struct file *file, char __user *buf, size_t count, in signalfd_read()
206 struct signalfd_siginfo __user *siginfo; in signalfd_read()
215 siginfo = (struct signalfd_siginfo __user *) buf; in signalfd_read()
302 SYSCALL_DEFINE4(signalfd4, int, ufd, sigset_t __user *, user_mask, in SYSCALL_DEFINE4() argument
314 SYSCALL_DEFINE3(signalfd, int, ufd, sigset_t __user *, user_mask, in SYSCALL_DEFINE3() argument
328 const compat_sigset_t __user *user_mask, in do_compat_signalfd4()
341 const compat_sigset_t __user *, user_mask, in COMPAT_SYSCALL_DEFINE4() argument
349 const compat_sigset_t __user *, user_mask, in COMPAT_SYSCALL_DEFINE3() argument
/fs/proc/
Dpage.c29 static ssize_t kpagecount_read(struct file *file, char __user *buf, in kpagecount_read()
32 u64 __user *out = (u64 __user *)buf; in kpagecount_read()
68 *ppos += (char __user *)out - buf; in kpagecount_read()
70 ret = (char __user *)out - buf; in kpagecount_read()
206 static ssize_t kpageflags_read(struct file *file, char __user *buf, in kpageflags_read()
209 u64 __user *out = (u64 __user *)buf; in kpageflags_read()
239 *ppos += (char __user *)out - buf; in kpageflags_read()
241 ret = (char __user *)out - buf; in kpageflags_read()
251 static ssize_t kpagecgroup_read(struct file *file, char __user *buf, in kpagecgroup_read()
254 u64 __user *out = (u64 __user *)buf; in kpagecgroup_read()
[all …]
/fs/ocfs2/
Dioctl.c36 copy_to_user((typeof(a) __user *)b, &(a), sizeof(a))
43 struct ocfs2_info_request __user *req) in o2info_set_request_error()
46 (void)put_user(kreq->ir_flags, (__u32 __user *)&(req->ir_flags)); in o2info_set_request_error()
140 struct ocfs2_info_request __user *req) in ocfs2_info_handle_blocksize()
158 struct ocfs2_info_request __user *req) in ocfs2_info_handle_clustersize()
177 struct ocfs2_info_request __user *req) in ocfs2_info_handle_maxslots()
196 struct ocfs2_info_request __user *req) in ocfs2_info_handle_label()
215 struct ocfs2_info_request __user *req) in ocfs2_info_handle_uuid()
234 struct ocfs2_info_request __user *req) in ocfs2_info_handle_fs_features()
255 struct ocfs2_info_request __user *req) in ocfs2_info_handle_journal_size()
[all …]
/fs/ubifs/
Dioctl.c147 return put_user(flags, (int __user *) arg); in ubifs_ioctl()
156 if (get_user(flags, (int __user *) arg)) in ubifs_ioctl()
184 return fscrypt_ioctl_set_policy(file, (const void __user *)arg); in ubifs_ioctl()
187 return fscrypt_ioctl_get_policy(file, (void __user *)arg); in ubifs_ioctl()
190 return fscrypt_ioctl_get_policy_ex(file, (void __user *)arg); in ubifs_ioctl()
193 return fscrypt_ioctl_add_key(file, (void __user *)arg); in ubifs_ioctl()
196 return fscrypt_ioctl_remove_key(file, (void __user *)arg); in ubifs_ioctl()
200 (void __user *)arg); in ubifs_ioctl()
202 return fscrypt_ioctl_get_key_status(file, (void __user *)arg); in ubifs_ioctl()
205 return fscrypt_ioctl_get_nonce(file, (void __user *)arg); in ubifs_ioctl()
/fs/nilfs2/
Dioctl.c53 void __user *base = (void __user *)(unsigned long)argv->v_base; in nilfs_ioctl_wrap_copy()
118 static int nilfs_ioctl_getflags(struct inode *inode, void __user *argp) in nilfs_ioctl_getflags()
122 return put_user(flags, (int __user *)argp); in nilfs_ioctl_getflags()
129 void __user *argp) in nilfs_ioctl_setflags()
138 if (get_user(flags, (int __user *)argp)) in nilfs_ioctl_setflags()
178 static int nilfs_ioctl_getversion(struct inode *inode, void __user *argp) in nilfs_ioctl_getversion()
180 return put_user(inode->i_generation, (int __user *)argp); in nilfs_ioctl_getversion()
203 unsigned int cmd, void __user *argp) in nilfs_ioctl_change_cpmode()
258 unsigned int cmd, void __user *argp) in nilfs_ioctl_delete_checkpoint()
337 unsigned int cmd, void __user *argp) in nilfs_ioctl_get_cpstat()
[all …]
/fs/ext4/
Dioctl.c581 if (get_user(flags, (__u32 __user *)arg)) in ext4_shutdown()
622 struct fsmap_head __user *gi_data;
644 struct fsmap_head __user *arg) in ext4_ioc_getfsmap()
782 struct fiemap __user *ufiemap = (struct fiemap __user *) arg; in ext4_ioctl_get_es_cache()
832 return ext4_ioc_getfsmap(sb, (void __user *)arg); in ext4_ioctl()
837 return put_user(flags, (int __user *) arg); in ext4_ioctl()
844 if (get_user(flags, (int __user *) arg)) in ext4_ioctl()
875 return put_user(inode->i_generation, (int __user *) arg); in ext4_ioctl()
895 if (get_user(generation, (int __user *) arg)) { in ext4_ioctl()
928 if (get_user(n_blocks_count, (__u32 __user *)arg)) { in ext4_ioctl()
[all …]
/fs/xfs/
Dxfs_ioctl32.c33 compat_xfs_flock64_t __user *arg32) in xfs_compat_flock64_copyin()
49 compat_xfs_fsop_geom_v1_t __user *arg32) in xfs_compat_ioc_fsgeometry_v1()
63 compat_xfs_growfs_data_t __user *arg32) in xfs_compat_growfs_data_copyin()
74 compat_xfs_growfs_rt_t __user *arg32) in xfs_compat_growfs_rt_copyin()
87 struct compat_xfs_inogrp __user *p32 = breq->ubuffer; in xfs_fsinumbers_fmt_compat()
108 compat_xfs_bstime_t __user *bstime32) in xfs_ioctl32_bstime_copyin()
126 struct compat_xfs_bstat __user *bstat32) in xfs_ioctl32_bstat_copyin()
158 compat_xfs_bstime_t __user *p32, in xfs_bstime_store_compat()
176 struct compat_xfs_bstat __user *p32 = breq->ubuffer; in xfs_fsbulkstat_one_fmt_compat()
214 struct compat_xfs_fsop_bulkreq __user *p32) in xfs_compat_ioc_fsbulkstat()
[all …]
/fs/quota/
Dcompat.c45 const char __user *, special, qid_t, id, in COMPAT_SYSCALL_DEFINE4() argument
46 void __user *, addr) in COMPAT_SYSCALL_DEFINE4() argument
49 struct if_dqblk __user *dqblk; in COMPAT_SYSCALL_DEFINE4()
50 struct compat_if_dqblk __user *compat_dqblk; in COMPAT_SYSCALL_DEFINE4()
51 struct fs_quota_stat __user *fsqstat; in COMPAT_SYSCALL_DEFINE4()
52 struct compat_fs_quota_stat __user *compat_fsqstat; in COMPAT_SYSCALL_DEFINE4()
/fs/ext2/
Dioctl.c34 return put_user(flags, (int __user *) arg); in ext2_ioctl()
47 if (get_user(flags, (int __user *) arg)) { in ext2_ioctl()
83 return put_user(inode->i_generation, (int __user *) arg); in ext2_ioctl()
92 if (get_user(generation, (int __user *) arg)) { in ext2_ioctl()
112 return put_user(rsv_window_size, (int __user *)arg); in ext2_ioctl()
123 if (get_user(rsv_window_size, (int __user *)arg)) in ext2_ioctl()
/fs/efivarfs/
Dfile.c16 const char __user *userbuf, size_t count, loff_t *ppos) in efivarfs_file_write()
65 static ssize_t efivarfs_file_read(struct file *file, char __user *userbuf, in efivarfs_file_read()
122 efivarfs_ioc_getxflags(struct file *file, void __user *arg) in efivarfs_ioc_getxflags()
133 efivarfs_ioc_setxflags(struct file *file, void __user *arg) in efivarfs_ioc_setxflags()
174 void __user *arg = (void __user *)p; in efivarfs_file_ioctl()

1234567