/fs/ |
D | fcntl.c | 276 static long fcntl_rw_hint(struct file *file, unsigned int cmd, in fcntl_rw_hint() argument 284 switch (cmd) { in fcntl_rw_hint() 322 static long do_fcntl(int fd, unsigned int cmd, unsigned long arg, in do_fcntl() argument 329 switch (cmd) { in do_fcntl() 356 err = fcntl_getlk(filp, cmd, &flock); in do_fcntl() 370 err = fcntl_setlk(fd, filp, cmd, &flock); in do_fcntl() 417 err = pipe_fcntl(filp, cmd, arg); in do_fcntl() 421 err = memfd_fcntl(filp, cmd, arg); in do_fcntl() 427 err = fcntl_rw_hint(filp, cmd, arg); in do_fcntl() 435 static int check_fcntl_cmd(unsigned cmd) in check_fcntl_cmd() argument [all …]
|
D | compat_ioctl.c | 82 static int do_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in do_ioctl() argument 86 err = security_file_ioctl(file, cmd, arg); in do_ioctl() 90 return vfs_ioctl(file, cmd, arg); in do_ioctl() 146 static int sg_ioctl_trans(struct file *file, unsigned int cmd, in sg_ioctl_trans() argument 159 return do_ioctl(file, cmd, (unsigned long)sgio32); in sg_ioctl_trans() 219 err = do_ioctl(file, cmd, (unsigned long) sgio); in sg_ioctl_trans() 251 unsigned int cmd, struct compat_sg_req_info __user *o) in sg_grt_trans() argument 256 err = do_ioctl(file, cmd, (unsigned long)r); in sg_grt_trans() 283 unsigned int cmd, struct sock_fprog32 __user *u_fprog32) in ppp_sock_fprog_ioctl_trans() argument 300 if (cmd == PPPIOCSPASS32) in ppp_sock_fprog_ioctl_trans() [all …]
|
D | ioctl.c | 40 long vfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in vfs_ioctl() argument 47 error = filp->f_op->unlocked_ioctl(filp, cmd, arg); in vfs_ioctl() 494 static int file_ioctl(struct file *filp, unsigned int cmd, in file_ioctl() argument 500 switch (cmd) { in file_ioctl() 510 return vfs_ioctl(filp, cmd, arg); in file_ioctl() 635 int do_vfs_ioctl(struct file *filp, unsigned int fd, unsigned int cmd, in do_vfs_ioctl() argument 642 switch (cmd) { in do_vfs_ioctl() 697 error = file_ioctl(filp, cmd, arg); in do_vfs_ioctl() 699 error = vfs_ioctl(filp, cmd, arg); in do_vfs_ioctl() 705 int ksys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg) in ksys_ioctl() argument [all …]
|
D | locks.c | 463 static inline int flock_translate_cmd(int cmd) { in flock_translate_cmd() argument 464 if (cmd & LOCK_MAND) in flock_translate_cmd() 465 return cmd & (LOCK_MAND | LOCK_RW); in flock_translate_cmd() 466 switch (cmd) { in flock_translate_cmd() 479 flock_make_lock(struct file *filp, unsigned int cmd, struct file_lock *fl) in flock_make_lock() argument 481 int type = flock_translate_cmd(cmd); in flock_make_lock() 2188 SYSCALL_DEFINE2(flock, unsigned int, fd, unsigned int, cmd) in SYSCALL_DEFINE2() argument 2199 can_sleep = !(cmd & LOCK_NB); in SYSCALL_DEFINE2() 2200 cmd &= ~LOCK_NB; in SYSCALL_DEFINE2() 2201 unlock = (cmd == LOCK_UN); in SYSCALL_DEFINE2() [all …]
|
D | fsopen.c | 216 static int vfs_fsconfig_locked(struct fs_context *fc, int cmd, in vfs_fsconfig_locked() argument 225 switch (cmd) { in vfs_fsconfig_locked() 316 unsigned int, cmd, in SYSCALL_DEFINE5() argument 332 switch (cmd) { in SYSCALL_DEFINE5() 372 switch (cmd) { in SYSCALL_DEFINE5() 390 switch (cmd) { in SYSCALL_DEFINE5() 445 ret = vfs_fsconfig_locked(fc, cmd, ¶m); in SYSCALL_DEFINE5() 453 switch (cmd) { in SYSCALL_DEFINE5()
|
/fs/autofs/ |
D | dev-ioctl.c | 54 static int check_dev_ioctl_version(int cmd, struct autofs_dev_ioctl *param) in check_dev_ioctl_version() argument 64 param->ver_major, param->ver_minor, cmd); in check_dev_ioctl_version() 109 static int validate_dev_ioctl(int cmd, struct autofs_dev_ioctl *param) in validate_dev_ioctl() argument 113 err = check_dev_ioctl_version(cmd, param); in validate_dev_ioctl() 116 "supplied for cmd(0x%08x)\n", cmd); in validate_dev_ioctl() 125 cmd); in validate_dev_ioctl() 132 cmd); in validate_dev_ioctl() 136 unsigned int inr = _IOC_NR(cmd); in validate_dev_ioctl() 562 #define cmd_idx(cmd) (cmd - _IOC_NR(AUTOFS_DEV_IOCTL_IOC_FIRST)) argument 564 static ioctl_fn lookup_dev_ioctl(unsigned int cmd) in lookup_dev_ioctl() argument [all …]
|
D | root.c | 871 unsigned int cmd, unsigned long arg) in autofs_root_ioctl_unlocked() argument 877 cmd, arg, sbi, task_pgrp_nr(current)); in autofs_root_ioctl_unlocked() 879 if (_IOC_TYPE(cmd) != _IOC_TYPE(AUTOFS_IOC_FIRST) || in autofs_root_ioctl_unlocked() 880 _IOC_NR(cmd) - _IOC_NR(AUTOFS_IOC_FIRST) >= AUTOFS_IOC_COUNT) in autofs_root_ioctl_unlocked() 886 switch (cmd) { in autofs_root_ioctl_unlocked() 922 unsigned int cmd, unsigned long arg) in autofs_root_ioctl() argument 926 return autofs_root_ioctl_unlocked(inode, filp, cmd, arg); in autofs_root_ioctl() 931 unsigned int cmd, unsigned long arg) in autofs_root_compat_ioctl() argument 936 if (cmd == AUTOFS_IOC_READY || cmd == AUTOFS_IOC_FAIL) in autofs_root_compat_ioctl() 937 ret = autofs_root_ioctl_unlocked(inode, filp, cmd, arg); in autofs_root_compat_ioctl() [all …]
|
/fs/ext2/ |
D | ioctl.c | 21 long ext2_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in ext2_ioctl() argument 29 ext2_debug ("cmd = %u, arg = %lu\n", cmd, arg); in ext2_ioctl() 31 switch (cmd) { in ext2_ioctl() 159 long ext2_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ext2_compat_ioctl() argument 162 switch (cmd) { in ext2_compat_ioctl() 164 cmd = EXT2_IOC_GETFLAGS; in ext2_compat_ioctl() 167 cmd = EXT2_IOC_SETFLAGS; in ext2_compat_ioctl() 170 cmd = EXT2_IOC_GETVERSION; in ext2_compat_ioctl() 173 cmd = EXT2_IOC_SETVERSION; in ext2_compat_ioctl() 178 return ext2_ioctl(file, cmd, (unsigned long) compat_ptr(arg)); in ext2_compat_ioctl()
|
/fs/reiserfs/ |
D | ioctl.c | 23 long reiserfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in reiserfs_ioctl() argument 31 switch (cmd) { in reiserfs_ioctl() 130 long reiserfs_compat_ioctl(struct file *file, unsigned int cmd, in reiserfs_compat_ioctl() argument 137 switch (cmd) { in reiserfs_compat_ioctl() 139 cmd = REISERFS_IOC_UNPACK; in reiserfs_compat_ioctl() 142 cmd = REISERFS_IOC_GETFLAGS; in reiserfs_compat_ioctl() 145 cmd = REISERFS_IOC_SETFLAGS; in reiserfs_compat_ioctl() 148 cmd = REISERFS_IOC_GETVERSION; in reiserfs_compat_ioctl() 151 cmd = REISERFS_IOC_SETVERSION; in reiserfs_compat_ioctl() 157 return reiserfs_ioctl(file, cmd, (unsigned long) compat_ptr(arg)); in reiserfs_compat_ioctl()
|
/fs/9p/ |
D | vfs_file.c | 116 static int v9fs_file_lock(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_lock() argument 127 if ((IS_SETLK(cmd) || IS_SETLKW(cmd)) && fl->fl_type != F_UNLCK) { in v9fs_file_lock() 135 static int v9fs_file_do_lock(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_do_lock() argument 175 if (IS_SETLKW(cmd)) in v9fs_file_do_lock() 191 if (status == P9_LOCK_BLOCKED && !IS_SETLKW(cmd)) in v9fs_file_do_lock() 306 static int v9fs_file_lock_dotl(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_lock_dotl() argument 312 filp, cmd, fl, filp); in v9fs_file_lock_dotl() 318 if ((IS_SETLK(cmd) || IS_SETLKW(cmd)) && fl->fl_type != F_UNLCK) { in v9fs_file_lock_dotl() 323 if (IS_SETLK(cmd) || IS_SETLKW(cmd)) in v9fs_file_lock_dotl() 324 ret = v9fs_file_do_lock(filp, cmd, fl); in v9fs_file_lock_dotl() [all …]
|
/fs/nilfs2/ |
D | ioctl.c | 203 unsigned int cmd, void __user *argp) in nilfs_ioctl_change_cpmode() argument 258 unsigned int cmd, void __user *argp) in nilfs_ioctl_delete_checkpoint() argument 337 unsigned int cmd, void __user *argp) in nilfs_ioctl_get_cpstat() argument 404 unsigned int cmd, void __user *argp) in nilfs_ioctl_get_sustat() argument 513 unsigned int cmd, void __user *argp) in nilfs_ioctl_get_bdescs() argument 525 ret = nilfs_ioctl_wrap_copy(nilfs, &argv, _IOC_DIR(cmd), in nilfs_ioctl_get_bdescs() 860 unsigned int cmd, void __user *argp) in nilfs_ioctl_clean_segments() argument 999 unsigned int cmd, void __user *argp) in nilfs_ioctl_sync() argument 1165 unsigned int cmd, void __user *argp, in nilfs_ioctl_get_info() argument 1182 ret = nilfs_ioctl_wrap_copy(nilfs, &argv, _IOC_DIR(cmd), dofunc); in nilfs_ioctl_get_info() [all …]
|
/fs/ocfs2/ |
D | locks.c | 25 int cmd, struct file_lock *fl) in ocfs2_do_flock() argument 33 if (!IS_SETLKW(cmd)) in ocfs2_do_flock() 83 static int ocfs2_do_funlock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_do_funlock() argument 99 int ocfs2_flock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_flock() argument 114 return ocfs2_do_funlock(file, cmd, fl); in ocfs2_flock() 116 return ocfs2_do_flock(file, inode, cmd, fl); in ocfs2_flock() 119 int ocfs2_lock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_lock() argument 129 return ocfs2_plock(osb->cconn, OCFS2_I(inode)->ip_blkno, file, cmd, fl); in ocfs2_lock()
|
/fs/xfs/ |
D | xfs_ioctl32.c | 26 #define _NATIVE_IOC(cmd, type) \ argument 27 _IOC(_IOC_DIR(cmd), _IOC_TYPE(cmd), _IOC_NR(cmd), sizeof(type)) 213 unsigned int cmd, in xfs_compat_ioc_fsbulkstat() argument 292 if (cmd == XFS_IOC_FSINUMBERS_32) { in xfs_compat_ioc_fsbulkstat() 296 } else if (cmd == XFS_IOC_FSBULKSTAT_SINGLE_32) { in xfs_compat_ioc_fsbulkstat() 301 } else if (cmd == XFS_IOC_FSBULKSTAT_32) { in xfs_compat_ioc_fsbulkstat() 544 unsigned cmd, in xfs_file_compat_ioctl() argument 555 switch (cmd) { in xfs_file_compat_ioctl() 570 cmd = _NATIVE_IOC(cmd, struct xfs_flock64); in xfs_file_compat_ioctl() 571 return xfs_ioc_space(filp, cmd, &bf); in xfs_file_compat_ioctl() [all …]
|
D | xfs_ioctl.h | 12 unsigned int cmd, 21 unsigned int cmd, 65 unsigned int cmd, 71 unsigned int cmd,
|
/fs/jfs/ |
D | ioctl.c | 60 long jfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in jfs_ioctl() argument 66 switch (cmd) { in jfs_ioctl() 161 long jfs_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in jfs_compat_ioctl() argument 167 switch (cmd) { in jfs_compat_ioctl() 169 cmd = JFS_IOC_GETFLAGS; in jfs_compat_ioctl() 172 cmd = JFS_IOC_SETFLAGS; in jfs_compat_ioctl() 175 return jfs_ioctl(filp, cmd, arg); in jfs_compat_ioctl()
|
/fs/overlayfs/ |
D | file.c | 389 static long ovl_real_ioctl(struct file *file, unsigned int cmd, in ovl_real_ioctl() argument 401 ret = vfs_ioctl(real.file, cmd, arg); in ovl_real_ioctl() 409 static long ovl_ioctl_set_flags(struct file *file, unsigned int cmd, in ovl_ioctl_set_flags() argument 436 ret = ovl_real_ioctl(file, cmd, arg); in ovl_ioctl_set_flags() 464 static long ovl_ioctl_set_fsflags(struct file *file, unsigned int cmd, in ovl_ioctl_set_fsflags() argument 472 return ovl_ioctl_set_flags(file, cmd, arg, in ovl_ioctl_set_fsflags() 492 static long ovl_ioctl_set_fsxflags(struct file *file, unsigned int cmd, in ovl_ioctl_set_fsxflags() argument 501 return ovl_ioctl_set_flags(file, cmd, arg, in ovl_ioctl_set_fsxflags() 505 static long ovl_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ovl_ioctl() argument 509 switch (cmd) { in ovl_ioctl() [all …]
|
/fs/ubifs/ |
D | ioctl.c | 136 long ubifs_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ubifs_ioctl() argument 141 switch (cmd) { in ubifs_ioctl() 209 long ubifs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ubifs_compat_ioctl() argument 211 switch (cmd) { in ubifs_compat_ioctl() 213 cmd = FS_IOC_GETFLAGS; in ubifs_compat_ioctl() 216 cmd = FS_IOC_SETFLAGS; in ubifs_compat_ioctl() 229 return ubifs_ioctl(file, cmd, (unsigned long)compat_ptr(arg)); in ubifs_compat_ioctl()
|
/fs/cifs/ |
D | trace.h | 412 __u16 cmd, 416 TP_ARGS(tid, sesid, cmd, mid, status, rc), 420 __field(__u16, cmd) 428 __entry->cmd = cmd; 434 __entry->sesid, __entry->tid, __entry->cmd, __entry->mid, 442 __u16 cmd, \ 446 TP_ARGS(tid, sesid, cmd, mid, status, rc)) 453 __u16 cmd, 455 TP_ARGS(tid, sesid, cmd, mid), 459 __field(__u16, cmd) [all …]
|
/fs/quota/ |
D | compat.c | 44 COMPAT_SYSCALL_DEFINE4(quotactl32, unsigned int, cmd, in COMPAT_SYSCALL_DEFINE4() argument 57 cmds = cmd >> SUBCMDSHIFT; in COMPAT_SYSCALL_DEFINE4() 63 ret = kernel_quotactl(cmd, special, id, dqblk); in COMPAT_SYSCALL_DEFINE4() 79 ret = kernel_quotactl(cmd, special, id, dqblk); in COMPAT_SYSCALL_DEFINE4() 84 ret = kernel_quotactl(cmd, special, id, fsqstat); in COMPAT_SYSCALL_DEFINE4() 117 ret = kernel_quotactl(cmd, special, id, addr); in COMPAT_SYSCALL_DEFINE4()
|
D | quota.c | 23 static int check_quotactl_permission(struct super_block *sb, int type, int cmd, in check_quotactl_permission() argument 26 switch (cmd) { in check_quotactl_permission() 47 return security_quotactl(cmd, type, id, sb); in check_quotactl_permission() 684 static int do_quotactl(struct super_block *sb, int type, int cmd, qid_t id, in do_quotactl() argument 701 ret = check_quotactl_permission(sb, type, cmd, id); in do_quotactl() 705 switch (cmd) { in do_quotactl() 755 static int quotactl_cmd_write(int cmd) in quotactl_cmd_write() argument 762 switch (cmd) { in quotactl_cmd_write() 778 static bool quotactl_cmd_onoff(int cmd) in quotactl_cmd_onoff() argument 780 return (cmd == Q_QUOTAON) || (cmd == Q_QUOTAOFF) || in quotactl_cmd_onoff() [all …]
|
/fs/nfs/ |
D | file.c | 657 do_getlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) in do_getlk() argument 677 status = NFS_PROTO(inode)->lock(filp, cmd, fl); in do_getlk() 686 do_unlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) in do_unlk() argument 715 status = NFS_PROTO(inode)->lock(filp, cmd, fl); in do_unlk() 722 do_setlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) in do_setlk() argument 740 status = NFS_PROTO(inode)->lock(filp, cmd, fl); in do_setlk() 766 int nfs_lock(struct file *filp, int cmd, struct file_lock *fl) in nfs_lock() argument 791 if (IS_GETLK(cmd)) in nfs_lock() 792 ret = do_getlk(filp, cmd, fl, is_local); in nfs_lock() 794 ret = do_unlk(filp, cmd, fl, is_local); in nfs_lock() [all …]
|
/fs/udf/ |
D | file.c | 181 long udf_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in udf_ioctl() argument 192 if (!arg && ((cmd == UDF_GETVOLIDENT) || (cmd == UDF_GETEASIZE) || in udf_ioctl() 193 (cmd == UDF_RELOCATE_BLOCKS) || (cmd == UDF_GETEABLOCK))) { in udf_ioctl() 198 switch (cmd) { in udf_ioctl()
|
/fs/ceph/ |
D | locks.c | 64 int cmd, u8 wait, struct file_lock *fl) in ceph_lock_message() argument 83 if (operation != CEPH_MDS_OP_SETFILELOCK || cmd == CEPH_LOCK_UNLOCK) in ceph_lock_message() 107 req->r_args.filelock_change.type = cmd; in ceph_lock_message() 217 int ceph_lock(struct file *file, int cmd, struct file_lock *fl) in ceph_lock() argument 235 if (IS_GETLK(cmd)) in ceph_lock() 237 else if (IS_SETLKW(cmd)) in ceph_lock() 277 int ceph_flock(struct file *file, int cmd, struct file_lock *fl) in ceph_flock() argument 304 if (IS_SETLKW(cmd)) in ceph_flock()
|
/fs/coda/ |
D | pioctl.c | 28 static long coda_pioctl(struct file *filp, unsigned int cmd, 48 static long coda_pioctl(struct file *filp, unsigned int cmd, in coda_pioctl() argument 82 error = venus_pioctl(inode->i_sb, &(cnp->c_fid), cmd, &data); in coda_pioctl()
|
/fs/ecryptfs/ |
D | file.c | 347 ecryptfs_unlocked_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ecryptfs_unlocked_ioctl() argument 355 switch (cmd) { in ecryptfs_unlocked_ioctl() 361 rc = lower_file->f_op->unlocked_ioctl(lower_file, cmd, arg); in ecryptfs_unlocked_ioctl() 372 ecryptfs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ecryptfs_compat_ioctl() argument 380 switch (cmd) { in ecryptfs_compat_ioctl() 385 rc = lower_file->f_op->compat_ioctl(lower_file, cmd, arg); in ecryptfs_compat_ioctl()
|