/fs/ |
D | fcntl.c | 285 static long fcntl_rw_hint(struct file *file, unsigned int cmd, in fcntl_rw_hint() argument 293 switch (cmd) { in fcntl_rw_hint() 331 static long do_fcntl(int fd, unsigned int cmd, unsigned long arg, in do_fcntl() argument 338 switch (cmd) { in do_fcntl() 365 err = fcntl_getlk(filp, cmd, &flock); in do_fcntl() 379 err = fcntl_setlk(fd, filp, cmd, &flock); in do_fcntl() 426 err = pipe_fcntl(filp, cmd, arg); in do_fcntl() 430 err = memfd_fcntl(filp, cmd, arg); in do_fcntl() 436 err = fcntl_rw_hint(filp, cmd, arg); in do_fcntl() 444 static int check_fcntl_cmd(unsigned cmd) in check_fcntl_cmd() argument [all …]
|
D | ioctl.c | 44 long vfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in vfs_ioctl() argument 51 error = filp->f_op->unlocked_ioctl(filp, cmd, arg); in vfs_ioctl() 327 static int file_ioctl(struct file *filp, unsigned int cmd, int __user *p) in file_ioctl() argument 329 switch (cmd) { in file_ioctl() 777 unsigned int cmd, unsigned long arg) in do_vfs_ioctl() argument 782 switch (cmd) { in do_vfs_ioctl() 834 return vfs_ioctl(filp, cmd, arg); in do_vfs_ioctl() 853 return file_ioctl(filp, cmd, argp); in do_vfs_ioctl() 860 SYSCALL_DEFINE3(ioctl, unsigned int, fd, unsigned int, cmd, unsigned long, arg) in SYSCALL_DEFINE3() argument 868 error = security_file_ioctl(f.file, cmd, arg); in SYSCALL_DEFINE3() [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 333 switch (cmd) { in SYSCALL_DEFINE5() 373 switch (cmd) { in SYSCALL_DEFINE5() 391 switch (cmd) { in SYSCALL_DEFINE5() 439 ret = vfs_fsconfig_locked(fc, cmd, ¶m); in SYSCALL_DEFINE5() 447 switch (cmd) { in SYSCALL_DEFINE5()
|
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() 2126 SYSCALL_DEFINE2(flock, unsigned int, fd, unsigned int, cmd) in SYSCALL_DEFINE2() argument 2137 can_sleep = !(cmd & LOCK_NB); in SYSCALL_DEFINE2() 2138 cmd &= ~LOCK_NB; in SYSCALL_DEFINE2() 2139 unlock = (cmd == LOCK_UN); in SYSCALL_DEFINE2() [all …]
|
/fs/autofs/ |
D | dev-ioctl.c | 56 static int check_dev_ioctl_version(int cmd, struct autofs_dev_ioctl *param) in check_dev_ioctl_version() argument 66 param->ver_major, param->ver_minor, cmd); in check_dev_ioctl_version() 111 static int validate_dev_ioctl(int cmd, struct autofs_dev_ioctl *param) in validate_dev_ioctl() argument 115 err = check_dev_ioctl_version(cmd, param); in validate_dev_ioctl() 118 "supplied for cmd(0x%08x)\n", cmd); in validate_dev_ioctl() 127 cmd); in validate_dev_ioctl() 134 cmd); in validate_dev_ioctl() 138 unsigned int inr = _IOC_NR(cmd); in validate_dev_ioctl() 564 #define cmd_idx(cmd) (cmd - _IOC_NR(AUTOFS_DEV_IOCTL_IOC_FIRST)) argument 566 static ioctl_fn lookup_dev_ioctl(unsigned int cmd) in lookup_dev_ioctl() argument [all …]
|
D | root.c | 863 unsigned int cmd, unsigned long arg) in autofs_root_ioctl_unlocked() argument 869 cmd, arg, sbi, task_pgrp_nr(current)); in autofs_root_ioctl_unlocked() 871 if (_IOC_TYPE(cmd) != _IOC_TYPE(AUTOFS_IOC_FIRST) || in autofs_root_ioctl_unlocked() 872 _IOC_NR(cmd) - _IOC_NR(AUTOFS_IOC_FIRST) >= AUTOFS_IOC_COUNT) in autofs_root_ioctl_unlocked() 878 switch (cmd) { in autofs_root_ioctl_unlocked() 914 unsigned int cmd, unsigned long arg) in autofs_root_ioctl() argument 918 return autofs_root_ioctl_unlocked(inode, filp, cmd, arg); in autofs_root_ioctl() 923 unsigned int cmd, unsigned long arg) in autofs_root_compat_ioctl() argument 928 if (cmd == AUTOFS_IOC_READY || cmd == AUTOFS_IOC_FAIL) in autofs_root_compat_ioctl() 929 ret = autofs_root_ioctl_unlocked(inode, filp, cmd, arg); in autofs_root_compat_ioctl() [all …]
|
/fs/ocfs2/ |
D | locks.c | 23 int cmd, struct file_lock *fl) in ocfs2_do_flock() argument 31 if (!IS_SETLKW(cmd)) in ocfs2_do_flock() 81 static int ocfs2_do_funlock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_do_funlock() argument 97 int ocfs2_flock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_flock() argument 110 return ocfs2_do_funlock(file, cmd, fl); in ocfs2_flock() 112 return ocfs2_do_flock(file, inode, cmd, fl); in ocfs2_flock() 115 int ocfs2_lock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_lock() argument 123 return ocfs2_plock(osb->cconn, OCFS2_I(inode)->ip_blkno, file, cmd, fl); in ocfs2_lock()
|
/fs/9p/ |
D | vfs_file.c | 117 static int v9fs_file_lock(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_lock() argument 124 if ((IS_SETLK(cmd) || IS_SETLKW(cmd)) && fl->fl_type != F_UNLCK) { in v9fs_file_lock() 132 static int v9fs_file_do_lock(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_do_lock() argument 172 if (IS_SETLKW(cmd)) in v9fs_file_do_lock() 188 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); in v9fs_file_lock_dotl() 311 if ((IS_SETLK(cmd) || IS_SETLKW(cmd)) && fl->fl_type != F_UNLCK) { in v9fs_file_lock_dotl() 316 if (IS_SETLK(cmd) || IS_SETLKW(cmd)) in v9fs_file_lock_dotl() 317 ret = v9fs_file_do_lock(filp, cmd, fl); in v9fs_file_lock_dotl() [all …]
|
/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 294 if (cmd == XFS_IOC_FSINUMBERS_32) { in xfs_compat_ioc_fsbulkstat() 298 } else if (cmd == XFS_IOC_FSBULKSTAT_SINGLE_32) { in xfs_compat_ioc_fsbulkstat() 303 } else if (cmd == XFS_IOC_FSBULKSTAT_32) { in xfs_compat_ioc_fsbulkstat() 436 unsigned cmd, in xfs_file_compat_ioctl() argument 446 switch (cmd) { in xfs_file_compat_ioctl() 456 cmd = _NATIVE_IOC(cmd, struct xfs_flock64); in xfs_file_compat_ioctl() 488 cmd = _NATIVE_IOC(cmd, long); in xfs_file_compat_ioctl() [all …]
|
D | xfs_ioctl.h | 25 unsigned int cmd, 65 unsigned int cmd, 71 unsigned int cmd,
|
/fs/fuse/ |
D | ioctl.c | 167 long fuse_do_ioctl(struct file *file, unsigned int cmd, unsigned long arg, in fuse_do_ioctl() argument 174 .cmd = cmd, in fuse_do_ioctl() 219 iov->iov_len = _IOC_SIZE(cmd); in fuse_do_ioctl() 221 if (_IOC_DIR(cmd) & _IOC_WRITE) { in fuse_do_ioctl() 226 if (_IOC_DIR(cmd) & _IOC_READ) { in fuse_do_ioctl() 351 long fuse_ioctl_common(struct file *file, unsigned int cmd, in fuse_ioctl_common() argument 369 return fuse_backing_ioctl(file, cmd, arg, flags); in fuse_ioctl_common() 372 return fuse_do_ioctl(file, cmd, arg, flags); in fuse_ioctl_common() 375 long fuse_file_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in fuse_file_ioctl() argument 377 return fuse_ioctl_common(file, cmd, arg, 0); in fuse_file_ioctl() [all …]
|
/fs/nilfs2/ |
D | ioctl.c | 188 unsigned int cmd, void __user *argp) in nilfs_ioctl_change_cpmode() argument 243 unsigned int cmd, void __user *argp) in nilfs_ioctl_delete_checkpoint() argument 322 unsigned int cmd, void __user *argp) in nilfs_ioctl_get_cpstat() argument 389 unsigned int cmd, void __user *argp) in nilfs_ioctl_get_sustat() argument 498 unsigned int cmd, void __user *argp) in nilfs_ioctl_get_bdescs() argument 510 ret = nilfs_ioctl_wrap_copy(nilfs, &argv, _IOC_DIR(cmd), in nilfs_ioctl_get_bdescs() 844 unsigned int cmd, void __user *argp) in nilfs_ioctl_clean_segments() argument 983 unsigned int cmd, void __user *argp) in nilfs_ioctl_sync() argument 1156 unsigned int cmd, void __user *argp, in nilfs_ioctl_get_info() argument 1173 ret = nilfs_ioctl_wrap_copy(nilfs, &argv, _IOC_DIR(cmd), dofunc); in nilfs_ioctl_get_info() [all …]
|
/fs/ext2/ |
D | ioctl.c | 54 long ext2_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in ext2_ioctl() argument 61 ext2_debug ("cmd = %u, arg = %lu\n", cmd, arg); in ext2_ioctl() 63 switch (cmd) { in ext2_ioctl() 144 long ext2_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ext2_compat_ioctl() argument 147 switch (cmd) { in ext2_compat_ioctl() 149 cmd = EXT2_IOC_GETVERSION; in ext2_compat_ioctl() 152 cmd = EXT2_IOC_SETVERSION; in ext2_compat_ioctl() 157 return ext2_ioctl(file, cmd, (unsigned long) compat_ptr(arg)); in ext2_compat_ioctl()
|
/fs/reiserfs/ |
D | ioctl.c | 76 long reiserfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in reiserfs_ioctl() argument 83 switch (cmd) { in reiserfs_ioctl() 125 long reiserfs_compat_ioctl(struct file *file, unsigned int cmd, in reiserfs_compat_ioctl() argument 132 switch (cmd) { in reiserfs_compat_ioctl() 134 cmd = REISERFS_IOC_UNPACK; in reiserfs_compat_ioctl() 137 cmd = REISERFS_IOC_GETVERSION; in reiserfs_compat_ioctl() 140 cmd = REISERFS_IOC_SETVERSION; in reiserfs_compat_ioctl() 146 return reiserfs_ioctl(file, cmd, (unsigned long) compat_ptr(arg)); in reiserfs_compat_ioctl()
|
/fs/ksmbd/ |
D | transport_ipc.c | 126 .cmd = KSMBD_EVENT_UNSPEC, 130 .cmd = KSMBD_EVENT_HEARTBEAT_REQUEST, 134 .cmd = KSMBD_EVENT_STARTING_UP, 138 .cmd = KSMBD_EVENT_SHUTTING_DOWN, 142 .cmd = KSMBD_EVENT_LOGIN_REQUEST, 146 .cmd = KSMBD_EVENT_LOGIN_RESPONSE, 150 .cmd = KSMBD_EVENT_SHARE_CONFIG_REQUEST, 154 .cmd = KSMBD_EVENT_SHARE_CONFIG_RESPONSE, 158 .cmd = KSMBD_EVENT_TREE_CONNECT_REQUEST, 162 .cmd = KSMBD_EVENT_TREE_CONNECT_RESPONSE, [all …]
|
/fs/ubifs/ |
D | ioctl.c | 171 long ubifs_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ubifs_ioctl() argument 176 switch (cmd) { in ubifs_ioctl() 213 long ubifs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ubifs_compat_ioctl() argument 215 switch (cmd) { in ubifs_compat_ioctl() 217 cmd = FS_IOC_GETFLAGS; in ubifs_compat_ioctl() 220 cmd = FS_IOC_SETFLAGS; in ubifs_compat_ioctl() 234 return ubifs_ioctl(file, cmd, (unsigned long)compat_ptr(arg)); in ubifs_compat_ioctl()
|
/fs/cifs/ |
D | trace.h | 420 __u16 cmd, 424 TP_ARGS(tid, sesid, cmd, mid, status, rc), 428 __field(__u16, cmd) 436 __entry->cmd = cmd; 442 __entry->sesid, __entry->tid, __entry->cmd, __entry->mid, 450 __u16 cmd, \ 454 TP_ARGS(tid, sesid, cmd, mid, status, rc)) 461 __u16 cmd, 463 TP_ARGS(tid, sesid, cmd, mid), 467 __field(__u16, cmd) [all …]
|
/fs/nfs/ |
D | file.c | 687 do_getlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) in do_getlk() argument 707 status = NFS_PROTO(inode)->lock(filp, cmd, fl); in do_getlk() 716 do_unlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) in do_unlk() argument 745 status = NFS_PROTO(inode)->lock(filp, cmd, fl); in do_unlk() 752 do_setlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) in do_setlk() argument 770 status = NFS_PROTO(inode)->lock(filp, cmd, fl); in do_setlk() 796 int nfs_lock(struct file *filp, int cmd, struct file_lock *fl) in nfs_lock() argument 820 if (IS_GETLK(cmd)) in nfs_lock() 821 ret = do_getlk(filp, cmd, fl, is_local); in nfs_lock() 823 ret = do_unlk(filp, cmd, fl, is_local); in nfs_lock() [all …]
|
/fs/quota/ |
D | quota.c | 26 static int check_quotactl_permission(struct super_block *sb, int type, int cmd, in check_quotactl_permission() argument 29 switch (cmd) { in check_quotactl_permission() 50 return security_quotactl(cmd, type, id, sb); in check_quotactl_permission() 766 static int do_quotactl(struct super_block *sb, int type, int cmd, qid_t id, in do_quotactl() argument 781 ret = check_quotactl_permission(sb, type, cmd, id); in do_quotactl() 785 switch (cmd) { in do_quotactl() 833 static int quotactl_cmd_write(int cmd) in quotactl_cmd_write() argument 840 switch (cmd) { in quotactl_cmd_write() 855 static bool quotactl_cmd_onoff(int cmd) in quotactl_cmd_onoff() argument 857 return (cmd == Q_QUOTAON) || (cmd == Q_QUOTAOFF) || in quotactl_cmd_onoff() [all …]
|
/fs/udf/ |
D | file.c | 179 long udf_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in udf_ioctl() argument 190 if (!arg && ((cmd == UDF_GETVOLIDENT) || (cmd == UDF_GETEASIZE) || in udf_ioctl() 191 (cmd == UDF_RELOCATE_BLOCKS) || (cmd == UDF_GETEABLOCK))) { in udf_ioctl() 196 switch (cmd) { in udf_ioctl()
|
/fs/ceph/ |
D | locks.c | 60 int cmd, u8 wait, struct file_lock *fl) in ceph_lock_message() argument 79 if (operation != CEPH_MDS_OP_SETFILELOCK || cmd == CEPH_LOCK_UNLOCK) in ceph_lock_message() 103 req->r_args.filelock_change.type = cmd; in ceph_lock_message() 228 int ceph_lock(struct file *file, int cmd, struct file_lock *fl) in ceph_lock() argument 243 if (IS_GETLK(cmd)) in ceph_lock() 245 else if (IS_SETLKW(cmd)) in ceph_lock() 291 int ceph_flock(struct file *file, int cmd, struct file_lock *fl) in ceph_flock() argument 318 if (IS_SETLKW(cmd)) in ceph_flock()
|
/fs/coda/ |
D | pioctl.c | 29 static long coda_pioctl(struct file *filp, unsigned int cmd, 50 static long coda_pioctl(struct file *filp, unsigned int cmd, in coda_pioctl() argument 84 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() 386 rc = lower_file->f_op->compat_ioctl(lower_file, cmd, arg); in ecryptfs_compat_ioctl()
|
/fs/proc/ |
D | inode.c | 377 static long pde_ioctl(struct proc_dir_entry *pde, struct file *file, unsigned int cmd, unsigned lon… in pde_ioctl() argument 383 return ioctl(file, cmd, arg); in pde_ioctl() 387 static long proc_reg_unlocked_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in proc_reg_unlocked_ioctl() argument 393 return pde_ioctl(pde, file, cmd, arg); in proc_reg_unlocked_ioctl() 395 rv = pde_ioctl(pde, file, cmd, arg); in proc_reg_unlocked_ioctl() 402 static long pde_compat_ioctl(struct proc_dir_entry *pde, struct file *file, unsigned int cmd, unsig… in pde_compat_ioctl() argument 408 return compat_ioctl(file, cmd, arg); in pde_compat_ioctl() 412 static long proc_reg_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in proc_reg_compat_ioctl() argument 417 return pde_compat_ioctl(pde, file, cmd, arg); in proc_reg_compat_ioctl() 419 rv = pde_compat_ioctl(pde, file, cmd, arg); in proc_reg_compat_ioctl()
|
/fs/ext4/ |
D | ioctl.c | 855 static long __ext4_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in __ext4_ioctl() argument 861 ext4_debug("cmd = %u, arg = %lu\n", cmd, arg); in __ext4_ioctl() 863 switch (cmd) { in __ext4_ioctl() 1274 long ext4_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in ext4_ioctl() argument 1276 return __ext4_ioctl(filp, cmd, arg); in ext4_ioctl() 1280 long ext4_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ext4_compat_ioctl() argument 1283 switch (cmd) { in ext4_compat_ioctl() 1285 cmd = EXT4_IOC_GETVERSION; in ext4_compat_ioctl() 1288 cmd = EXT4_IOC_SETVERSION; in ext4_compat_ioctl() 1291 cmd = EXT4_IOC_GROUP_EXTEND; in ext4_compat_ioctl() [all …]
|