/fs/ |
D | compat_ioctl.c | 119 static int w_long(unsigned int fd, unsigned int cmd, in w_long() argument 127 err = sys_ioctl(fd, cmd, (unsigned long)&val); in w_long() 143 static int do_video_get_event(unsigned int fd, unsigned int cmd, in do_video_get_event() argument 151 err = sys_ioctl(fd, cmd, (unsigned long) &kevent); in do_video_get_event() 173 static int do_video_stillpicture(unsigned int fd, unsigned int cmd, in do_video_stillpicture() argument 194 err = sys_ioctl(fd, cmd, (unsigned long) up_native); in do_video_stillpicture() 204 static int do_video_set_spu_palette(unsigned int fd, unsigned int cmd, in do_video_set_spu_palette() argument 222 err = sys_ioctl(fd, cmd, (unsigned long) up_native); in do_video_set_spu_palette() 280 static int sg_ioctl_trans(unsigned int fd, unsigned int cmd, in sg_ioctl_trans() argument 293 return sys_ioctl(fd, cmd, (unsigned long)sgio32); in sg_ioctl_trans() [all …]
|
D | fcntl.c | 343 static long do_fcntl(int fd, unsigned int cmd, unsigned long arg, in do_fcntl() argument 348 switch (cmd) { in do_fcntl() 353 err = alloc_fd(arg, cmd == F_DUPFD_CLOEXEC ? O_CLOEXEC : 0); in do_fcntl() 377 err = fcntl_setlk(fd, filp, cmd, (struct flock __user *) arg); in do_fcntl() 421 err = pipe_fcntl(filp, cmd, arg); in do_fcntl() 429 static int check_fcntl_cmd(unsigned cmd) in check_fcntl_cmd() argument 431 switch (cmd) { in check_fcntl_cmd() 442 SYSCALL_DEFINE3(fcntl, unsigned int, fd, unsigned int, cmd, unsigned long, arg) in SYSCALL_DEFINE3() argument 452 if (!check_fcntl_cmd(cmd)) { in SYSCALL_DEFINE3() 458 err = security_file_fcntl(filp, cmd, arg); in SYSCALL_DEFINE3() [all …]
|
D | ioctl.c | 35 static long vfs_ioctl(struct file *filp, unsigned int cmd, in vfs_ioctl() argument 43 error = filp->f_op->unlocked_ioctl(filp, cmd, arg); in vfs_ioctl() 449 static int file_ioctl(struct file *filp, unsigned int cmd, in file_ioctl() argument 455 switch (cmd) { in file_ioctl() 465 return vfs_ioctl(filp, cmd, arg); in file_ioctl() 546 int do_vfs_ioctl(struct file *filp, unsigned int fd, unsigned int cmd, in do_vfs_ioctl() argument 553 switch (cmd) { in do_vfs_ioctl() 596 error = file_ioctl(filp, cmd, arg); in do_vfs_ioctl() 598 error = vfs_ioctl(filp, cmd, arg); in do_vfs_ioctl() 604 SYSCALL_DEFINE3(ioctl, unsigned int, fd, unsigned int, cmd, unsigned long, arg) in SYSCALL_DEFINE3() argument [all …]
|
D | locks.c | 274 static inline int flock_translate_cmd(int cmd) { in flock_translate_cmd() argument 275 if (cmd & LOCK_MAND) in flock_translate_cmd() 276 return cmd & (LOCK_MAND | LOCK_RW); in flock_translate_cmd() 277 switch (cmd) { in flock_translate_cmd() 290 unsigned int cmd) in flock_make_lock() argument 293 int type = flock_translate_cmd(cmd); in flock_make_lock() 1636 SYSCALL_DEFINE2(flock, unsigned int, fd, unsigned int, cmd) in SYSCALL_DEFINE2() argument 1648 can_sleep = !(cmd & LOCK_NB); in SYSCALL_DEFINE2() 1649 cmd &= ~LOCK_NB; in SYSCALL_DEFINE2() 1650 unlock = (cmd == LOCK_UN); in SYSCALL_DEFINE2() [all …]
|
/fs/ext3/ |
D | ioctl.c | 15 long ext3_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in ext3_ioctl() argument 22 ext3_debug ("cmd = %u, arg = %lu\n", cmd, arg); in ext3_ioctl() 24 switch (cmd) { in ext3_ioctl() 284 long ext3_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ext3_compat_ioctl() argument 287 switch (cmd) { in ext3_compat_ioctl() 289 cmd = EXT3_IOC_GETFLAGS; in ext3_compat_ioctl() 292 cmd = EXT3_IOC_SETFLAGS; in ext3_compat_ioctl() 295 cmd = EXT3_IOC_GETVERSION; in ext3_compat_ioctl() 298 cmd = EXT3_IOC_SETVERSION; in ext3_compat_ioctl() 301 cmd = EXT3_IOC_GROUP_EXTEND; in ext3_compat_ioctl() [all …]
|
/fs/quota/ |
D | quota.c | 21 static int check_quotactl_permission(struct super_block *sb, int type, int cmd, in check_quotactl_permission() argument 24 switch (cmd) { in check_quotactl_permission() 44 return security_quotactl(cmd, type, id, sb); in check_quotactl_permission() 65 static int quota_quotaon(struct super_block *sb, int type, int cmd, qid_t id, in quota_quotaon() argument 188 static int quota_setxstate(struct super_block *sb, int cmd, void __user *addr) in quota_setxstate() argument 196 return sb->s_qcop->set_xstate(sb, flags, cmd); in quota_setxstate() 239 static int do_quotactl(struct super_block *sb, int type, int cmd, qid_t id, in do_quotactl() argument 244 if (type >= (XQM_COMMAND(cmd) ? XQM_MAXQUOTAS : MAXQUOTAS)) in do_quotactl() 249 ret = check_quotactl_permission(sb, type, cmd, id); in do_quotactl() 253 switch (cmd) { in do_quotactl() [all …]
|
D | compat.c | 43 asmlinkage long sys32_quotactl(unsigned int cmd, const char __user *special, in sys32_quotactl() argument 55 cmds = cmd >> SUBCMDSHIFT; in sys32_quotactl() 61 ret = sys_quotactl(cmd, special, id, dqblk); in sys32_quotactl() 77 ret = sys_quotactl(cmd, special, id, dqblk); in sys32_quotactl() 82 ret = sys_quotactl(cmd, special, id, fsqstat); in sys32_quotactl() 115 ret = sys_quotactl(cmd, special, id, addr); in sys32_quotactl()
|
/fs/ext2/ |
D | ioctl.c | 20 long ext2_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in ext2_ioctl() argument 28 ext2_debug ("cmd = %u, arg = %lu\n", cmd, arg); in ext2_ioctl() 30 switch (cmd) { in ext2_ioctl() 167 long ext2_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ext2_compat_ioctl() argument 170 switch (cmd) { in ext2_compat_ioctl() 172 cmd = EXT2_IOC_GETFLAGS; in ext2_compat_ioctl() 175 cmd = EXT2_IOC_SETFLAGS; in ext2_compat_ioctl() 178 cmd = EXT2_IOC_GETVERSION; in ext2_compat_ioctl() 181 cmd = EXT2_IOC_SETVERSION; in ext2_compat_ioctl() 186 return ext2_ioctl(file, cmd, (unsigned long) compat_ptr(arg)); in ext2_compat_ioctl()
|
/fs/reiserfs/ |
D | ioctl.c | 22 long reiserfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in reiserfs_ioctl() argument 30 switch (cmd) { in reiserfs_ioctl() 132 long reiserfs_compat_ioctl(struct file *file, unsigned int cmd, in reiserfs_compat_ioctl() argument 136 switch (cmd) { in reiserfs_compat_ioctl() 138 cmd = REISERFS_IOC_UNPACK; in reiserfs_compat_ioctl() 141 cmd = REISERFS_IOC_GETFLAGS; in reiserfs_compat_ioctl() 144 cmd = REISERFS_IOC_SETFLAGS; in reiserfs_compat_ioctl() 147 cmd = REISERFS_IOC_GETVERSION; in reiserfs_compat_ioctl() 150 cmd = REISERFS_IOC_SETVERSION; in reiserfs_compat_ioctl() 156 return reiserfs_ioctl(file, cmd, (unsigned long) compat_ptr(arg)); in reiserfs_compat_ioctl()
|
/fs/autofs4/ |
D | dev-ioctl.c | 71 static int check_dev_ioctl_version(int cmd, struct autofs_dev_ioctl *param) in check_dev_ioctl_version() argument 81 param->ver_major, param->ver_minor, cmd); in check_dev_ioctl_version() 119 static int validate_dev_ioctl(int cmd, struct autofs_dev_ioctl *param) in validate_dev_ioctl() argument 123 err = check_dev_ioctl_version(cmd, param); in validate_dev_ioctl() 126 "supplied for cmd(0x%08x)", cmd); in validate_dev_ioctl() 135 cmd); in validate_dev_ioctl() 142 cmd); in validate_dev_ioctl() 574 #define cmd_idx(cmd) (cmd - _IOC_NR(AUTOFS_DEV_IOCTL_IOC_FIRST)) argument 576 static ioctl_fn lookup_dev_ioctl(unsigned int cmd) in lookup_dev_ioctl() argument 579 int cmd; in lookup_dev_ioctl() member [all …]
|
D | root.c | 826 unsigned int cmd, unsigned long arg) in autofs4_root_ioctl_unlocked() argument 832 cmd,arg,sbi,task_pgrp_nr(current)); in autofs4_root_ioctl_unlocked() 834 if (_IOC_TYPE(cmd) != _IOC_TYPE(AUTOFS_IOC_FIRST) || in autofs4_root_ioctl_unlocked() 835 _IOC_NR(cmd) - _IOC_NR(AUTOFS_IOC_FIRST) >= AUTOFS_IOC_COUNT) in autofs4_root_ioctl_unlocked() 841 switch(cmd) { in autofs4_root_ioctl_unlocked() 876 unsigned int cmd, unsigned long arg) in autofs4_root_ioctl() argument 879 return autofs4_root_ioctl_unlocked(inode, filp, cmd, arg); in autofs4_root_ioctl() 884 unsigned int cmd, unsigned long arg) in autofs4_root_compat_ioctl() argument 889 if (cmd == AUTOFS_IOC_READY || cmd == AUTOFS_IOC_FAIL) in autofs4_root_compat_ioctl() 890 ret = autofs4_root_ioctl_unlocked(inode, filp, cmd, arg); in autofs4_root_compat_ioctl() [all …]
|
/fs/ocfs2/ |
D | locks.c | 39 int cmd, struct file_lock *fl) in ocfs2_do_flock() argument 47 if (!IS_SETLKW(cmd)) in ocfs2_do_flock() 92 static int ocfs2_do_funlock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_do_funlock() argument 108 int ocfs2_flock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_flock() argument 123 return ocfs2_do_funlock(file, cmd, fl); in ocfs2_flock() 125 return ocfs2_do_flock(file, inode, cmd, fl); in ocfs2_flock() 128 int ocfs2_lock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_lock() argument 138 return ocfs2_plock(osb->cconn, OCFS2_I(inode)->ip_blkno, file, cmd, fl); in ocfs2_lock()
|
D | ioctl.h | 13 long ocfs2_ioctl(struct file *filp, unsigned int cmd, unsigned long arg); 14 long ocfs2_compat_ioctl(struct file *file, unsigned cmd, unsigned long arg);
|
/fs/nilfs2/ |
D | ioctl.c | 167 unsigned int cmd, void __user *argp) in nilfs_ioctl_change_cpmode() argument 203 unsigned int cmd, void __user *argp) in nilfs_ioctl_delete_checkpoint() argument 246 unsigned int cmd, void __user *argp) in nilfs_ioctl_get_cpstat() argument 277 unsigned int cmd, void __user *argp) in nilfs_ioctl_get_sustat() argument 333 unsigned int cmd, void __user *argp) in nilfs_ioctl_get_bdescs() argument 345 ret = nilfs_ioctl_wrap_copy(nilfs, &argv, _IOC_DIR(cmd), in nilfs_ioctl_get_bdescs() 575 unsigned int cmd, void __user *argp) in nilfs_ioctl_clean_segments() argument 688 unsigned int cmd, void __user *argp) in nilfs_ioctl_sync() argument 767 unsigned int cmd, void __user *argp, in nilfs_ioctl_get_info() argument 784 ret = nilfs_ioctl_wrap_copy(nilfs, &argv, _IOC_DIR(cmd), dofunc); in nilfs_ioctl_get_info() [all …]
|
/fs/9p/ |
D | vfs_file.c | 133 static int v9fs_file_lock(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_lock() argument 144 if ((IS_SETLK(cmd) || IS_SETLKW(cmd)) && fl->fl_type != F_UNLCK) { in v9fs_file_lock() 152 static int v9fs_file_do_lock(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_do_lock() argument 191 if (IS_SETLKW(cmd)) in v9fs_file_do_lock() 205 if (status == P9_LOCK_BLOCKED && !IS_SETLKW(cmd)) in v9fs_file_do_lock() 303 static int v9fs_file_lock_dotl(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_lock_dotl() argument 309 filp, cmd, fl, filp->f_path.dentry->d_name.name); in v9fs_file_lock_dotl() 315 if ((IS_SETLK(cmd) || IS_SETLKW(cmd)) && fl->fl_type != F_UNLCK) { in v9fs_file_lock_dotl() 320 if (IS_SETLK(cmd) || IS_SETLKW(cmd)) in v9fs_file_lock_dotl() 321 ret = v9fs_file_do_lock(filp, cmd, fl); in v9fs_file_lock_dotl() [all …]
|
/fs/ext4/ |
D | ioctl.c | 23 long ext4_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in ext4_ioctl() argument 30 ext4_debug("cmd = %u, arg = %lu\n", cmd, arg); in ext4_ioctl() 32 switch (cmd) { in ext4_ioctl() 409 int flags = cmd == FIDTRIM ? BLKDEV_DISCARD_SECURE : 0; in ext4_ioctl() 449 long ext4_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ext4_compat_ioctl() argument 452 switch (cmd) { in ext4_compat_ioctl() 454 cmd = EXT4_IOC_GETFLAGS; in ext4_compat_ioctl() 457 cmd = EXT4_IOC_SETFLAGS; in ext4_compat_ioctl() 460 cmd = EXT4_IOC_GETVERSION; in ext4_compat_ioctl() 463 cmd = EXT4_IOC_SETVERSION; in ext4_compat_ioctl() [all …]
|
/fs/jfs/ |
D | ioctl.c | 55 long jfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in jfs_ioctl() argument 61 switch (cmd) { in jfs_ioctl() 132 long jfs_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in jfs_compat_ioctl() argument 138 switch (cmd) { in jfs_compat_ioctl() 140 cmd = JFS_IOC_GETFLAGS; in jfs_compat_ioctl() 143 cmd = JFS_IOC_SETFLAGS; in jfs_compat_ioctl() 146 return jfs_ioctl(filp, cmd, arg); in jfs_compat_ioctl()
|
/fs/xfs/ |
D | xfs_ioctl32.c | 48 #define _NATIVE_IOC(cmd, type) \ argument 49 _IOC(_IOC_DIR(cmd), _IOC_TYPE(cmd), _IOC_NR(cmd), sizeof(type)) 250 unsigned int cmd, in xfs_compat_ioc_bulkstat() argument 289 if (cmd == XFS_IOC_FSINUMBERS_32) { in xfs_compat_ioc_bulkstat() 292 } else if (cmd == XFS_IOC_FSBULKSTAT_SINGLE_32) { in xfs_compat_ioc_bulkstat() 297 } else if (cmd == XFS_IOC_FSBULKSTAT_32) { in xfs_compat_ioc_bulkstat() 532 unsigned cmd, in xfs_file_compat_ioctl() argument 547 switch (cmd) { in xfs_file_compat_ioctl() 565 return xfs_file_ioctl(filp, cmd, p); in xfs_file_compat_ioctl() 580 return xfs_file_ioctl(filp, cmd, p); in xfs_file_compat_ioctl() [all …]
|
D | xfs_ioctl.h | 27 unsigned int cmd, 32 unsigned int cmd, 76 unsigned int cmd, 82 unsigned int cmd,
|
D | xfs_ioctl.c | 69 unsigned int cmd, in xfs_find_handle() argument 80 if (cmd == XFS_IOC_FD_TO_HANDLE) { in xfs_find_handle() 110 if (cmd == XFS_IOC_PATH_TO_FSHANDLE) { in xfs_find_handle() 138 if (cmd == XFS_IOC_FD_TO_HANDLE) in xfs_find_handle() 604 unsigned int cmd, in xfs_ioc_space() argument 636 error = xfs_change_file_space(ip, cmd, bf, filp->f_pos, attr_flags); in xfs_ioc_space() 643 unsigned int cmd, in xfs_ioc_bulkstat() argument 673 if (cmd == XFS_IOC_FSINUMBERS) in xfs_ioc_bulkstat() 676 else if (cmd == XFS_IOC_FSBULKSTAT_SINGLE) in xfs_ioc_bulkstat() 1232 unsigned int cmd, in xfs_ioc_getbmap() argument [all …]
|
/fs/ceph/ |
D | locks.c | 14 int cmd, u8 wait, struct file_lock *fl) in ceph_lock_message() argument 41 req->r_args.filelock_change.type = cmd; in ceph_lock_message() 83 int ceph_lock(struct file *file, int cmd, struct file_lock *fl) in ceph_lock() argument 94 if (F_SETLKW == cmd) in ceph_lock() 96 if (F_GETLK == cmd) in ceph_lock() 130 int ceph_flock(struct file *file, int cmd, struct file_lock *fl) in ceph_flock() argument 140 if (cmd & LOCK_NB) in ceph_flock() 142 cmd = cmd & (LOCK_SH | LOCK_EX | LOCK_UN); in ceph_flock() 145 if (LOCK_SH == cmd) in ceph_flock() 147 else if (LOCK_EX == cmd) in ceph_flock()
|
/fs/ubifs/ |
D | ioctl.c | 147 long ubifs_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ubifs_ioctl() argument 152 switch (cmd) { in ubifs_ioctl() 191 long ubifs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ubifs_compat_ioctl() argument 193 switch (cmd) { in ubifs_compat_ioctl() 195 cmd = FS_IOC_GETFLAGS; in ubifs_compat_ioctl() 198 cmd = FS_IOC_SETFLAGS; in ubifs_compat_ioctl() 203 return ubifs_ioctl(file, cmd, (unsigned long)compat_ptr(arg)); in ubifs_compat_ioctl()
|
/fs/ncpfs/ |
D | ioctl.c | 257 static long __ncp_ioctl(struct inode *inode, unsigned int cmd, unsigned long arg) in __ncp_ioctl() argument 265 switch (cmd) { in __ncp_ioctl() 271 if (cmd == NCP_IOC_NCPREQUEST_32) { in __ncp_ioctl() 524 switch (rqdata.cmd) { in __ncp_ioctl() 547 if (rqdata.cmd == NCP_LOCK_CLEAR) in __ncp_ioctl() 559 switch (rqdata.cmd) in __ncp_ioctl() 646 if (cmd == NCP_IOC_SETOBJECTNAME_32) { in __ncp_ioctl() 693 if (cmd == NCP_IOC_GETPRIVATEDATA_32) { in __ncp_ioctl() 719 if (cmd == NCP_IOC_GETPRIVATEDATA_32) { in __ncp_ioctl() 744 if (cmd == NCP_IOC_SETPRIVATEDATA_32) { in __ncp_ioctl() [all …]
|
/fs/nfs/ |
D | file.c | 654 do_getlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) in do_getlk() argument 674 status = NFS_PROTO(inode)->lock(filp, cmd, fl); in do_getlk() 699 do_unlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) in do_unlk() argument 719 status = NFS_PROTO(inode)->lock(filp, cmd, fl); in do_unlk() 731 do_setlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) in do_setlk() argument 749 status = NFS_PROTO(inode)->lock(filp, cmd, fl); in do_setlk() 776 static int nfs_lock(struct file *filp, int cmd, struct file_lock *fl) in nfs_lock() argument 803 if (IS_GETLK(cmd)) in nfs_lock() 804 ret = do_getlk(filp, cmd, fl, is_local); in nfs_lock() 806 ret = do_unlk(filp, cmd, fl, is_local); in nfs_lock() [all …]
|
/fs/coda/ |
D | pioctl.c | 28 static long coda_pioctl(struct file *filp, unsigned int cmd, 49 static long coda_pioctl(struct file *filp, unsigned int cmd, in coda_pioctl() argument 86 error = venus_pioctl(inode->i_sb, &(cnp->c_fid), cmd, &data); in coda_pioctl()
|