/fs/ |
D | select.c | 292 void __user *p, in poll_select_copy_remaining() 365 int get_fd_set(unsigned long nr, void __user *ufdset, unsigned long *fdset) in get_fd_set() 376 set_fd_set(unsigned long nr, void __user *ufdset, unsigned long *fdset) in set_fd_set() 600 int core_sys_select(int n, fd_set __user *inp, fd_set __user *outp, in core_sys_select() 601 fd_set __user *exp, struct timespec64 *end_time) in core_sys_select() 679 SYSCALL_DEFINE5(select, int, n, fd_set __user *, inp, fd_set __user *, outp, in SYSCALL_DEFINE5() argument 680 fd_set __user *, exp, struct timeval __user *, tvp) in SYSCALL_DEFINE5() argument 703 static long do_pselect(int n, fd_set __user *inp, fd_set __user *outp, in do_pselect() 704 fd_set __user *exp, struct timespec __user *tsp, in do_pselect() 705 const sigset_t __user *sigmask, size_t sigsetsize) in do_pselect() [all …]
|
D | stat.c | 166 int vfs_statx(int dfd, const char __user *filename, int flags, in vfs_statx() 207 static int cp_old_stat(struct kstat *stat, struct __old_kernel_stat __user * statbuf) in cp_old_stat() 244 SYSCALL_DEFINE2(stat, const char __user *, filename, in SYSCALL_DEFINE2() argument 245 struct __old_kernel_stat __user *, statbuf) in SYSCALL_DEFINE2() argument 257 SYSCALL_DEFINE2(lstat, const char __user *, filename, in SYSCALL_DEFINE2() argument 258 struct __old_kernel_stat __user *, statbuf) in SYSCALL_DEFINE2() argument 270 SYSCALL_DEFINE2(fstat, unsigned int, fd, struct __old_kernel_stat __user *, statbuf) in SYSCALL_DEFINE2() argument 296 static int cp_new_stat(struct kstat *stat, struct stat __user *statbuf) in cp_new_stat() 333 SYSCALL_DEFINE2(newstat, const char __user *, filename, in SYSCALL_DEFINE2() argument 334 struct stat __user *, statbuf) in SYSCALL_DEFINE2() argument [all …]
|
D | xattr.c | 425 setxattr(struct dentry *d, const char __user *name, const void __user *value, in setxattr() 469 static int path_setxattr(const char __user *pathname, in path_setxattr() 470 const char __user *name, const void __user *value, in path_setxattr() 492 SYSCALL_DEFINE5(setxattr, const char __user *, pathname, in SYSCALL_DEFINE5() argument 493 const char __user *, name, const void __user *, value, in SYSCALL_DEFINE5() argument 499 SYSCALL_DEFINE5(lsetxattr, const char __user *, pathname, in SYSCALL_DEFINE5() argument 500 const char __user *, name, const void __user *, value, in SYSCALL_DEFINE5() argument 506 SYSCALL_DEFINE5(fsetxattr, int, fd, const char __user *, name, in SYSCALL_DEFINE5() argument 507 const void __user *,value, size_t, size, int, flags) in SYSCALL_DEFINE5() argument 528 getxattr(struct dentry *d, const char __user *name, void __user *value, in getxattr() [all …]
|
D | utimes.c | 24 SYSCALL_DEFINE2(utime, char __user *, filename, struct utimbuf __user *, times) in SYSCALL_DEFINE2() argument 119 long do_utimes(int dfd, const char __user *filename, struct timespec64 *times, in do_utimes() 168 SYSCALL_DEFINE4(utimensat, int, dfd, const char __user *, filename, in SYSCALL_DEFINE4() argument 169 struct timespec __user *, utimes, int, flags) in SYSCALL_DEFINE4() argument 187 SYSCALL_DEFINE3(futimesat, int, dfd, const char __user *, filename, in SYSCALL_DEFINE3() argument 188 struct timeval __user *, utimes) in SYSCALL_DEFINE3() argument 215 SYSCALL_DEFINE2(utimes, char __user *, filename, in SYSCALL_DEFINE2() argument 216 struct timeval __user *, utimes) in SYSCALL_DEFINE2() argument 226 COMPAT_SYSCALL_DEFINE2(utime, const char __user *, filename, in COMPAT_SYSCALL_DEFINE2() argument 227 struct compat_utimbuf __user *, t) in COMPAT_SYSCALL_DEFINE2() argument [all …]
|
D | readdir.c | 122 struct old_linux_dirent __user * dirent; 131 struct old_linux_dirent __user * dirent; in fillonedir() 160 struct old_linux_dirent __user *, dirent, unsigned int, count) in SYSCALL_DEFINE3() argument 195 struct linux_dirent __user * current_dir; 196 struct linux_dirent __user * previous; 204 struct linux_dirent __user * dirent; in filldir() 238 if (__put_user(d_type, (char __user *) dirent + reclen - 1)) in filldir() 241 dirent = (void __user *)dirent + reclen; in filldir() 251 struct linux_dirent __user *, dirent, unsigned int, count) in SYSCALL_DEFINE3() argument 254 struct linux_dirent __user * lastdirent; in SYSCALL_DEFINE3() [all …]
|
D | statfs.c | 81 int user_statfs(const char __user *pathname, struct kstatfs *st) in user_statfs() 110 static int do_statfs_native(struct kstatfs *st, struct statfs __user *p) in do_statfs_native() 152 static int do_statfs64(struct kstatfs *st, struct statfs64 __user *p) in do_statfs64() 176 SYSCALL_DEFINE2(statfs, const char __user *, pathname, struct statfs __user *, buf) in SYSCALL_DEFINE2() argument 185 SYSCALL_DEFINE3(statfs64, const char __user *, pathname, size_t, sz, struct statfs64 __user *, buf) in SYSCALL_DEFINE3() argument 197 SYSCALL_DEFINE2(fstatfs, unsigned int, fd, struct statfs __user *, buf) in SYSCALL_DEFINE2() argument 206 SYSCALL_DEFINE3(fstatfs64, unsigned int, fd, size_t, sz, struct statfs64 __user *, buf) in SYSCALL_DEFINE3() argument 232 SYSCALL_DEFINE2(ustat, unsigned, dev, struct ustat __user *, ubuf) in SYSCALL_DEFINE2() argument 248 static int put_compat_statfs(struct compat_statfs __user *ubuf, struct kstatfs *kbuf) in put_compat_statfs() 286 COMPAT_SYSCALL_DEFINE2(statfs, const char __user *, pathname, struct compat_statfs __user *, buf) in COMPAT_SYSCALL_DEFINE2() argument [all …]
|
D | compat_ioctl.c | 141 unsigned int cmd, compat_ulong_t __user *argp) in w_long() 144 unsigned long __user *valp = compat_alloc_user_space(sizeof(*valp)); in w_long() 167 unsigned int cmd, struct compat_video_event __user *up) in do_video_get_event() 169 struct video_event __user *kevent = in do_video_get_event() 198 unsigned int cmd, struct compat_video_still_picture __user *up) in do_video_stillpicture() 200 struct video_still_picture __user *up_native; in do_video_stillpicture() 229 unsigned int cmd, struct compat_video_spu_palette __user *up) in do_video_set_spu_palette() 231 struct video_spu_palette __user *up_native; in do_video_set_spu_palette() 283 static int sg_build_iovec(sg_io_hdr_t __user *sgio, void __user *dxferp, u16 iovec_count) in sg_build_iovec() 285 sg_iovec_t __user *iov = (sg_iovec_t __user *) (sgio + 1); in sg_build_iovec() [all …]
|
D | binfmt_aout.c | 51 void __user *dump_start; in aout_core_dump() 55 # define START_DATA(u) ((void __user *)u.start_data) in aout_core_dump() 57 # define START_DATA(u) ((void __user *)((u.u_tsize << PAGE_SHIFT) + \ in aout_core_dump() 60 # define START_STACK(u) ((void __user *)u.start_stack) in aout_core_dump() 141 static unsigned long __user *create_aout_tables(char __user *p, struct linux_binprm * bprm) in create_aout_tables() 143 char __user * __user *argv; in create_aout_tables() 144 char __user * __user *envp; in create_aout_tables() 145 unsigned long __user *sp; in create_aout_tables() 149 sp = (void __user *)((-(unsigned long)sizeof(char *)) & (unsigned long) p); in create_aout_tables() 164 envp = (char __user * __user *) sp; in create_aout_tables() [all …]
|
D | read_write.c | 331 unsigned long, offset_low, loff_t __user *, result, in SYSCALL_DEFINE5() argument 390 static ssize_t new_sync_read(struct file *filp, char __user *buf, size_t len, loff_t *ppos) in new_sync_read() 407 ssize_t __vfs_read(struct file *file, char __user *buf, size_t count, in __vfs_read() 426 result = vfs_read(file, (void __user *)buf, count, pos); in kernel_read() 432 ssize_t vfs_read(struct file *file, char __user *buf, size_t count, loff_t *pos) in vfs_read() 460 static ssize_t new_sync_write(struct file *filp, const char __user *buf, size_t len, loff_t *ppos) in new_sync_write() 462 struct iovec iov = { .iov_base = (void __user *)buf, .iov_len = len }; in new_sync_write() 478 ssize_t __vfs_write(struct file *file, const char __user *p, size_t count, in __vfs_write() 492 const char __user *p; in __kernel_write() 500 p = (__force const char __user *)buf; in __kernel_write() [all …]
|
D | fhandle.c | 18 struct file_handle __user *ufh, in do_sys_name_to_handle() 19 int __user *mnt_id) in do_sys_name_to_handle() 94 SYSCALL_DEFINE5(name_to_handle_at, int, dfd, const char __user *, name, in SYSCALL_DEFINE5() argument 95 struct file_handle __user *, handle, int __user *, mnt_id, in SYSCALL_DEFINE5() argument 168 static int handle_to_path(int mountdirfd, struct file_handle __user *ufh, in handle_to_path() 217 struct file_handle __user *ufh, int open_flag) in do_handle_open() 258 struct file_handle __user *, handle, in SYSCALL_DEFINE3() argument 276 struct file_handle __user *, handle, int, flags) in COMPAT_SYSCALL_DEFINE3() argument
|
D | exec.c | 120 SYSCALL_DEFINE1(uselib, const char __user *, library) in SYSCALL_DEFINE1() argument 434 const char __user *const __user *native; 436 const compat_uptr_t __user *compat; 441 static const char __user *get_user_arg_ptr(struct user_arg_ptr argv, int nr) in get_user_arg_ptr() 443 const char __user *native; in get_user_arg_ptr() 471 const char __user *p = get_user_arg_ptr(argv, i); in count() 505 const char __user *str; in copy_strings() 593 .ptr.native = (const char __user *const __user *)__argv, in copy_strings_kernel() 995 ssize_t res = vfs_read(file, (void __user *)addr, len, &pos); in read_code() 1842 const char __user *const __user *__argv, in do_execve() [all …]
|
D | binfmt_flat.c | 114 char __user *p; in create_flat_tables() 115 unsigned long __user *sp; in create_flat_tables() 118 p = (char __user *)arg_start; in create_flat_tables() 119 sp = (unsigned long __user *)current->mm->start_stack; in create_flat_tables() 127 sp = (unsigned long __user *)current->mm->start_stack; in create_flat_tables() 375 unsigned long __user *ptr; in old_reloc() 380 ptr = (unsigned long __user *)(current->mm->start_code + r.reloc.offset); in old_reloc() 382 ptr = (unsigned long __user *)(current->mm->start_data + r.reloc.offset); in old_reloc() 418 u32 __user *reloc, *rp; in load_flat_file() 590 reloc = (u32 __user *) in load_flat_file() [all …]
|
D | ioctl.c | 53 static int ioctl_fibmap(struct file *filp, int __user *p) in ioctl_fibmap() 92 struct fiemap_extent __user *dest = fieinfo->fi_extents_start; in fiemap_fill_next_extent() 179 struct fiemap __user *ufiemap = (struct fiemap __user *) arg; in ioctl_fiemap() 238 static long ioctl_file_clone_range(struct file *file, void __user *argp) in ioctl_file_clone_range() 460 int ioctl_preallocate(struct file *filp, void __user *argp) in ioctl_preallocate() 488 int __user *p = (int __user *)arg; in file_ioctl() 503 static int ioctl_fionbio(struct file *filp, int __user *argp) in ioctl_fionbio() 527 int __user *argp) in ioctl_fioasync() 578 static int ioctl_file_dedupe_range(struct file *file, void __user *arg) in ioctl_file_dedupe_range() 580 struct file_dedupe_range __user *argp = arg; in ioctl_file_dedupe_range() [all …]
|
D | aio.c | 180 struct iocb __user *ki_user_iocb; /* user's aiocb */ 1073 struct aio_ring __user *ring = (void __user *)ctx_id; in lookup_ioctx() 1218 struct io_event __user *event, long nr) in aio_read_events_ring() 1299 struct io_event __user *event, long *i) in aio_read_events() 1316 struct io_event __user *event, in read_events() 1317 struct timespec __user *timeout) in read_events() 1371 SYSCALL_DEFINE2(io_setup, unsigned, nr_events, aio_context_t __user *, ctxp) in SYSCALL_DEFINE2() argument 1402 COMPAT_SYSCALL_DEFINE2(io_setup, unsigned, nr_events, u32 __user *, ctx32p) in COMPAT_SYSCALL_DEFINE2() argument 1473 void __user *buf = (void __user *)(uintptr_t)iocb->aio_buf; in aio_setup_rw() 1566 static int io_submit_one(struct kioctx *ctx, struct iocb __user *user_iocb, in io_submit_one() [all …]
|
D | signalfd.c | 81 static int signalfd_copyinfo(struct signalfd_siginfo __user *uinfo, in signalfd_copyinfo() 199 static ssize_t signalfd_read(struct file *file, char __user *buf, size_t count, in signalfd_read() 203 struct signalfd_siginfo __user *siginfo; in signalfd_read() 212 siginfo = (struct signalfd_siginfo __user *) buf; in signalfd_read() 250 SYSCALL_DEFINE4(signalfd4, int, ufd, sigset_t __user *, user_mask, in SYSCALL_DEFINE4() argument 304 SYSCALL_DEFINE3(signalfd, int, ufd, sigset_t __user *, user_mask, in SYSCALL_DEFINE3() argument 312 const compat_sigset_t __user *,sigmask, in COMPAT_SYSCALL_DEFINE4() argument 318 sigset_t __user *ksigmask; in COMPAT_SYSCALL_DEFINE4() 333 const compat_sigset_t __user *,sigmask, in COMPAT_SYSCALL_DEFINE3() argument
|
/fs/proc/ |
D | page.c | 29 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() 204 static ssize_t kpageflags_read(struct file *file, char __user *buf, in kpageflags_read() 207 u64 __user *out = (u64 __user *)buf; in kpageflags_read() 237 *ppos += (char __user *)out - buf; in kpageflags_read() 239 ret = (char __user *)out - buf; in kpageflags_read() 249 static ssize_t kpagecgroup_read(struct file *file, char __user *buf, in kpagecgroup_read() 252 u64 __user *out = (u64 __user *)buf; in kpagecgroup_read() [all …]
|
/fs/xfs/ |
D | xfs_itable.h | 28 void __user *buffer, 50 char __user *ubuffer,/* buffer with inode stats */ 54 void __user *ubuffer, /* buffer to write to */ 63 void __user *buffer, 73 void __user *buffer, 79 void __user *ubuffer, /* buffer to write to */ 86 void __user *ubuffer, /* buffer to write to */ 96 void __user *buffer, /* buffer with inode info */
|
D | xfs_ioctl32.c | 48 compat_xfs_flock64_t __user *arg32) in xfs_compat_flock64_copyin() 64 compat_xfs_fsop_geom_v1_t __user *arg32) in xfs_compat_ioc_fsgeometry_v1() 81 compat_xfs_growfs_data_t __user *arg32) in xfs_compat_growfs_data_copyin() 92 compat_xfs_growfs_rt_t __user *arg32) in xfs_compat_growfs_rt_copyin() 102 void __user *ubuffer, in xfs_inumbers_fmt_compat() 107 compat_xfs_inogrp_t __user *p32 = ubuffer; in xfs_inumbers_fmt_compat() 127 compat_xfs_bstime_t __user *bstime32) in xfs_ioctl32_bstime_copyin() 142 compat_xfs_bstat_t __user *bstat32) in xfs_ioctl32_bstat_copyin() 174 compat_xfs_bstime_t __user *p32, in xfs_bstime_store_compat() 189 void __user *ubuffer, in xfs_bulkstat_one_fmt_compat() [all …]
|
/fs/ocfs2/ |
D | ioctl.c | 36 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() 147 struct ocfs2_info_request __user *req) in ocfs2_info_handle_blocksize() 165 struct ocfs2_info_request __user *req) in ocfs2_info_handle_clustersize() 184 struct ocfs2_info_request __user *req) in ocfs2_info_handle_maxslots() 203 struct ocfs2_info_request __user *req) in ocfs2_info_handle_label() 222 struct ocfs2_info_request __user *req) in ocfs2_info_handle_uuid() 241 struct ocfs2_info_request __user *req) in ocfs2_info_handle_fs_features() 262 struct ocfs2_info_request __user *req) in ocfs2_info_handle_journal_size() [all …]
|
/fs/nilfs2/ |
D | ioctl.c | 62 void __user *base = (void __user *)(unsigned long)argv->v_base; in nilfs_ioctl_wrap_copy() 127 static int nilfs_ioctl_getflags(struct inode *inode, void __user *argp) in nilfs_ioctl_getflags() 131 return put_user(flags, (int __user *)argp); in nilfs_ioctl_getflags() 138 void __user *argp) in nilfs_ioctl_setflags() 147 if (get_user(flags, (int __user *)argp)) in nilfs_ioctl_setflags() 192 static int nilfs_ioctl_getversion(struct inode *inode, void __user *argp) in nilfs_ioctl_getversion() 194 return put_user(inode->i_generation, (int __user *)argp); in nilfs_ioctl_getversion() 217 unsigned int cmd, void __user *argp) in nilfs_ioctl_change_cpmode() 272 unsigned int cmd, void __user *argp) in nilfs_ioctl_delete_checkpoint() 351 unsigned int cmd, void __user *argp) in nilfs_ioctl_get_cpstat() [all …]
|
/fs/xfs/libxfs/ |
D | xfs_fs.h | 315 __u64 __user *lastip; /* last inode # pointer */ 317 void __user *ubuffer;/* user buffer for inode desc. */ 318 __s32 __user *ocount; /* output count pointer */ 378 void __user *path; /* user pathname */ 380 void __user *ihandle;/* user supplied handle */ 382 void __user *ohandle;/* user buffer for handle */ 383 __u32 __user *ohandlen;/* user buffer length */ 395 struct fsdmidata __user *data; /* DMAPI data */ 407 void __user *buffer; /* returned names */ 416 void __user *am_attrname; [all …]
|
/fs/quota/ |
D | compat.c | 44 asmlinkage long sys32_quotactl(unsigned int cmd, const char __user *special, in sys32_quotactl() 45 qid_t id, void __user *addr) in sys32_quotactl() 48 struct if_dqblk __user *dqblk; in sys32_quotactl() 49 struct compat_if_dqblk __user *compat_dqblk; in sys32_quotactl() 50 struct fs_quota_stat __user *fsqstat; in sys32_quotactl() 51 struct compat_fs_quota_stat __user *compat_fsqstat; in sys32_quotactl()
|
/fs/ext2/ |
D | ioctl.c | 34 return put_user(flags, (int __user *) arg); in ext2_ioctl() 47 if (get_user(flags, (int __user *) arg)) { in ext2_ioctl() 91 return put_user(inode->i_generation, (int __user *) arg); in ext2_ioctl() 100 if (get_user(generation, (int __user *) arg)) { in ext2_ioctl() 120 return put_user(rsv_window_size, (int __user *)arg); in ext2_ioctl() 131 if (get_user(rsv_window_size, (int __user *)arg)) in ext2_ioctl()
|
/fs/efivarfs/ |
D | file.c | 18 const char __user *userbuf, size_t count, loff_t *ppos) in efivarfs_file_write() 67 static ssize_t efivarfs_file_read(struct file *file, char __user *userbuf, in efivarfs_file_read() 108 efivarfs_ioc_getxflags(struct file *file, void __user *arg) in efivarfs_ioc_getxflags() 124 efivarfs_ioc_setxflags(struct file *file, void __user *arg) in efivarfs_ioc_setxflags() 163 void __user *arg = (void __user *)p; in efivarfs_file_ioctl()
|
/fs/ext4/ |
D | ioctl.c | 508 if (get_user(flags, (__u32 __user *)arg)) in ext4_shutdown() 546 struct fsmap_head __user *gi_data; 568 struct fsmap_head __user *arg) in ext4_ioc_getfsmap() 663 return ext4_ioc_getfsmap(sb, (void __user *)arg); in ext4_ioctl() 666 return put_user(flags, (int __user *) arg); in ext4_ioctl() 673 if (get_user(flags, (int __user *) arg)) in ext4_ioctl() 704 return put_user(inode->i_generation, (int __user *) arg); in ext4_ioctl() 724 if (get_user(generation, (int __user *) arg)) { in ext4_ioctl() 757 if (get_user(n_blocks_count, (__u32 __user *)arg)) { in ext4_ioctl() 797 (struct move_extent __user *)arg, sizeof(me))) in ext4_ioctl() [all …]
|