Home
last modified time | relevance | path

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

123456

/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 __kernel_old_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 __kernel_old_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.c78 static int do_utimes_path(int dfd, const char __user *filename, in do_utimes_path()
138 long do_utimes(int dfd, const char __user *filename, struct timespec64 *times, in do_utimes()
146 SYSCALL_DEFINE4(utimensat, int, dfd, const char __user *, filename, in SYSCALL_DEFINE4() argument
147 struct __kernel_timespec __user *, utimes, int, flags) in SYSCALL_DEFINE4() argument
172 static long do_futimesat(int dfd, const char __user *filename, in do_futimesat()
173 struct __kernel_old_timeval __user *utimes) in do_futimesat()
201 SYSCALL_DEFINE3(futimesat, int, dfd, const char __user *, filename, in SYSCALL_DEFINE3() argument
202 struct __kernel_old_timeval __user *, utimes) in SYSCALL_DEFINE3() argument
207 SYSCALL_DEFINE2(utimes, char __user *, filename, in SYSCALL_DEFINE2() argument
208 struct __kernel_old_timeval __user *, utimes) in SYSCALL_DEFINE2() argument
[all …]
Dstat.c174 static int vfs_statx(int dfd, const char __user *filename, int flags, in vfs_statx()
212 int vfs_fstatat(int dfd, const char __user *filename, in vfs_fstatat()
225 static int cp_old_stat(struct kstat *stat, struct __old_kernel_stat __user * statbuf) in cp_old_stat()
262 SYSCALL_DEFINE2(stat, const char __user *, filename, in SYSCALL_DEFINE2() argument
263 struct __old_kernel_stat __user *, statbuf) in SYSCALL_DEFINE2() argument
275 SYSCALL_DEFINE2(lstat, const char __user *, filename, in SYSCALL_DEFINE2() argument
276 struct __old_kernel_stat __user *, statbuf) in SYSCALL_DEFINE2() argument
288 SYSCALL_DEFINE2(fstat, unsigned int, fd, struct __old_kernel_stat __user *, statbuf) in SYSCALL_DEFINE2() argument
313 static int cp_new_stat(struct kstat *stat, struct stat __user *statbuf) in cp_new_stat()
352 SYSCALL_DEFINE2(newstat, const char __user *, filename, 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()
181 struct old_linux_dirent __user *, dirent, unsigned int, count) in SYSCALL_DEFINE3() argument
216 struct linux_dirent __user * current_dir;
225 struct linux_dirent __user *dirent, *prev; in filldir()
248 prev = (void __user *) dirent - prev_reclen; in filldir()
256 unsafe_put_user(d_type, (char __user *) dirent + reclen - 1, efault_end); in filldir()
260 buf->current_dir = (void __user *)dirent + reclen; in filldir()
272 struct linux_dirent __user *, dirent, unsigned int, count) in SYSCALL_DEFINE3() argument
[all …]
Dxattr.c511 setxattr(struct dentry *d, const char __user *name, const void __user *value, in setxattr()
555 static int path_setxattr(const char __user *pathname, in path_setxattr()
556 const char __user *name, const void __user *value, in path_setxattr()
578 SYSCALL_DEFINE5(setxattr, const char __user *, pathname, in SYSCALL_DEFINE5() argument
579 const char __user *, name, const void __user *, value, in SYSCALL_DEFINE5() argument
585 SYSCALL_DEFINE5(lsetxattr, const char __user *, pathname, in SYSCALL_DEFINE5() argument
586 const char __user *, name, const void __user *, value, in SYSCALL_DEFINE5() argument
592 SYSCALL_DEFINE5(fsetxattr, int, fd, const char __user *, name, in SYSCALL_DEFINE5() argument
593 const void __user *,value, size_t, size, int, flags) in SYSCALL_DEFINE5() argument
614 getxattr(struct dentry *d, const char __user *name, void __user *value, in getxattr()
[all …]
Dstatfs.c97 int user_statfs(const char __user *pathname, struct kstatfs *st) in user_statfs()
126 static int do_statfs_native(struct kstatfs *st, struct statfs __user *p) in do_statfs_native()
168 static int do_statfs64(struct kstatfs *st, struct statfs64 __user *p) in do_statfs64()
192 SYSCALL_DEFINE2(statfs, const char __user *, pathname, struct statfs __user *, buf) in SYSCALL_DEFINE2() argument
201 SYSCALL_DEFINE3(statfs64, const char __user *, pathname, size_t, sz, struct statfs64 __user *, buf) in SYSCALL_DEFINE3() argument
213 SYSCALL_DEFINE2(fstatfs, unsigned int, fd, struct statfs __user *, buf) in SYSCALL_DEFINE2() argument
222 SYSCALL_DEFINE3(fstatfs64, unsigned int, fd, size_t, sz, struct statfs64 __user *, buf) in SYSCALL_DEFINE3() argument
248 SYSCALL_DEFINE2(ustat, unsigned, dev, struct ustat __user *, ubuf) in SYSCALL_DEFINE2() argument
264 static int put_compat_statfs(struct compat_statfs __user *ubuf, struct kstatfs *kbuf) in put_compat_statfs()
302 COMPAT_SYSCALL_DEFINE2(statfs, const char __user *, pathname, struct compat_statfs __user *, buf) in COMPAT_SYSCALL_DEFINE2() argument
[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()
246 (unsigned long) create_aout_tables((char __user *) bprm->p, bprm); in load_aout_binary()
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()
393 unsigned long __user *ptr; in old_reloc()
398 ptr = (unsigned long __user *)(current->mm->start_code + r.reloc.offset); in old_reloc()
400 ptr = (unsigned long __user *)(current->mm->start_data + r.reloc.offset); in old_reloc()
430 static inline u32 __user *skip_got_header(u32 __user *rp) in skip_got_header()
461 __be32 __user *reloc; in load_flat_file()
[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
Dread_write.c337 unsigned long, offset_low, loff_t __user *, result, in SYSCALL_DEFINE5() argument
404 static ssize_t new_sync_read(struct file *filp, char __user *buf, size_t len, loff_t *ppos) in new_sync_read()
476 ssize_t vfs_read(struct file *file, char __user *buf, size_t count, loff_t *pos) in vfs_read()
507 static ssize_t new_sync_write(struct file *filp, const char __user *buf, size_t len, loff_t *ppos) in new_sync_write()
509 struct iovec iov = { .iov_base = (void __user *)buf, .iov_len = len }; in new_sync_write()
585 ssize_t vfs_write(struct file *file, const char __user *buf, size_t count, loff_t *pos) in vfs_write()
623 ssize_t ksys_read(unsigned int fd, char __user *buf, size_t count) in ksys_read()
642 SYSCALL_DEFINE3(read, unsigned int, fd, char __user *, buf, size_t, count) in SYSCALL_DEFINE3() argument
647 ssize_t ksys_write(unsigned int fd, const char __user *buf, size_t count) in ksys_write()
667 SYSCALL_DEFINE3(write, unsigned int, fd, const char __user *, buf, in SYSCALL_DEFINE3() argument
[all …]
Dexec.c126 SYSCALL_DEFINE1(uselib, const char __user *, library) in SYSCALL_DEFINE1() argument
400 const char __user *const __user *native;
402 const compat_uptr_t __user *compat;
407 static const char __user *get_user_arg_ptr(struct user_arg_ptr argv, int nr) in get_user_arg_ptr()
409 const char __user *native; in get_user_arg_ptr()
437 const char __user *p = get_user_arg_ptr(argv, i); in count()
529 const char __user *str; in copy_strings()
966 ssize_t res = vfs_read(file, (void __user *)addr, len, &pos); in read_code()
2010 const char __user *const __user *__argv, in do_execve()
2011 const char __user *const __user *__envp) in do_execve()
[all …]
Dioctl.c56 static int ioctl_fibmap(struct file *filp, int __user *p) in ioctl_fibmap()
116 struct fiemap_extent __user *dest = fieinfo->fi_extents_start; in fiemap_fill_next_extent()
196 static int ioctl_fiemap(struct file *filp, struct fiemap __user *ufiemap) in ioctl_fiemap()
253 struct file_clone_range __user *argp) in ioctl_file_clone_range()
473 static int ioctl_preallocate(struct file *filp, int mode, void __user *argp) in ioctl_preallocate()
502 struct space_resv_32 __user *argp) in compat_ioctl_preallocate()
527 static int file_ioctl(struct file *filp, unsigned int cmd, int __user *p) in file_ioctl()
545 static int ioctl_fionbio(struct file *filp, int __user *argp) in ioctl_fionbio()
569 int __user *argp) in ioctl_fioasync()
621 struct file_dedupe_range __user *argp) in ioctl_file_dedupe_range()
[all …]
Dopen.c122 long do_sys_truncate(const char __user *pathname, loff_t length) in do_sys_truncate()
144 SYSCALL_DEFINE2(truncate, const char __user *, path, long, length) in SYSCALL_DEFINE2() argument
150 COMPAT_SYSCALL_DEFINE2(truncate, const char __user *, path, compat_off_t, length) in COMPAT_SYSCALL_DEFINE2() argument
218 SYSCALL_DEFINE2(truncate64, const char __user *, path, loff_t, length) in SYSCALL_DEFINE2() argument
398 static long do_faccessat(int dfd, const char __user *filename, int mode, int flags) in do_faccessat()
470 SYSCALL_DEFINE3(faccessat, int, dfd, const char __user *, filename, int, mode) in SYSCALL_DEFINE3() argument
475 SYSCALL_DEFINE4(faccessat2, int, dfd, const char __user *, filename, int, mode, in SYSCALL_DEFINE4() argument
481 SYSCALL_DEFINE2(access, const char __user *, filename, int, mode) in SYSCALL_DEFINE2() argument
486 SYSCALL_DEFINE1(chdir, const char __user *, filename) in SYSCALL_DEFINE1() argument
534 SYSCALL_DEFINE1(chroot, const char __user *, filename) in SYSCALL_DEFINE1() argument
[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.c44 static ssize_t kpagecount_read(struct file *file, char __user *buf, in kpagecount_read()
48 u64 __user *out = (u64 __user *)buf; in kpagecount_read()
86 *ppos += (char __user *)out - buf; in kpagecount_read()
88 ret = (char __user *)out - buf; in kpagecount_read()
227 static ssize_t kpageflags_read(struct file *file, char __user *buf, in kpageflags_read()
231 u64 __user *out = (u64 __user *)buf; in kpageflags_read()
263 *ppos += (char __user *)out - buf; in kpageflags_read()
265 ret = (char __user *)out - buf; in kpageflags_read()
275 static ssize_t kpagecgroup_read(struct file *file, char __user *buf, in kpagecgroup_read()
279 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/incfs/
Dverity.h14 int incfs_ioctl_enable_verity(struct file *filp, const void __user *uarg);
15 int incfs_ioctl_measure_verity(struct file *filp, void __user *_uarg);
19 const void __user *uarg);
24 const void __user *uarg) in incfs_ioctl_enable_verity()
30 void __user *_uarg) in incfs_ioctl_measure_verity()
42 const void __user *uarg) in incfs_ioctl_read_verity_metadata()
Dpseudo_files.c38 static ssize_t pending_reads_read(struct file *f, char __user *buf, size_t len, in pending_reads_read()
138 static long ioctl_permit_fill(struct file *f, void __user *arg) in ioctl_permit_fill()
140 struct incfs_permit_fill __user *usr_permit_fill = arg; in ioctl_permit_fill()
237 const char __user *relative_path, in dir_relative_path_resolve()
276 static struct mem_range incfs_copy_signature_info_from_user(u8 __user *original, in incfs_copy_signature_info_from_user()
301 u8 __user *user_signature_info, u64 signature_size) in init_new_file()
390 const char __user *dir_name, const char *file_name, in notify_create()
466 struct incfs_new_file_args __user *usr_args) in ioctl_create_file()
754 static long ioctl_create_mapped_file(struct file *file, void __user *arg) in ioctl_create_mapped_file()
757 struct incfs_create_mapped_file_args __user *args_usr_ptr = arg; in ioctl_create_mapped_file()
[all …]
/fs/ubifs/
Dioctl.c152 return put_user(flags, (int __user *) arg); in ubifs_ioctl()
161 if (get_user(flags, (int __user *) arg)) in ubifs_ioctl()
190 return fscrypt_ioctl_set_policy(file, (const void __user *)arg); in ubifs_ioctl()
193 return fscrypt_ioctl_get_policy(file, (void __user *)arg); in ubifs_ioctl()
196 return fscrypt_ioctl_get_policy_ex(file, (void __user *)arg); in ubifs_ioctl()
199 return fscrypt_ioctl_add_key(file, (void __user *)arg); in ubifs_ioctl()
202 return fscrypt_ioctl_remove_key(file, (void __user *)arg); in ubifs_ioctl()
206 (void __user *)arg); in ubifs_ioctl()
208 return fscrypt_ioctl_get_key_status(file, (void __user *)arg); in ubifs_ioctl()
211 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.c620 if (get_user(flags, (__u32 __user *)arg)) in ext4_shutdown()
661 struct fsmap_head __user *gi_data;
683 struct fsmap_head __user *arg) in ext4_ioc_getfsmap()
798 struct fiemap __user *ufiemap = (struct fiemap __user *) arg; in ext4_ioctl_get_es_cache()
834 return ext4_ioc_getfsmap(sb, (void __user *)arg); in __ext4_ioctl()
839 return put_user(flags, (int __user *) arg); in __ext4_ioctl()
846 if (get_user(flags, (int __user *) arg)) in __ext4_ioctl()
877 return put_user(inode->i_generation, (int __user *) arg); in __ext4_ioctl()
897 if (get_user(generation, (int __user *) arg)) { in __ext4_ioctl()
930 if (get_user(n_blocks_count, (__u32 __user *)arg)) { in __ext4_ioctl()
[all …]
/fs/xfs/
Dxfs_ioctl.h39 uint32_t opcode, void __user *uname, void __user *value,
41 int xfs_ioc_attr_list(struct xfs_inode *dp, void __user *ubuf,
43 struct xfs_attrlist_cursor __user *ucursor);
48 void __user *uhandle,
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/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()
66 static ssize_t efivarfs_file_read(struct file *file, char __user *userbuf, in efivarfs_file_read()
121 efivarfs_ioc_getxflags(struct file *file, void __user *arg) in efivarfs_ioc_getxflags()
132 efivarfs_ioc_setxflags(struct file *file, void __user *arg) in efivarfs_ioc_setxflags()
173 void __user *arg = (void __user *)p; in efivarfs_file_ioctl()

123456