Home
last modified time | relevance | path

Searched refs:cmd (Results 1 – 25 of 71) sorted by relevance

123

/fs/
Dquota.c23 static int generic_quotactl_valid(struct super_block *sb, int type, int cmd, qid_t id) in generic_quotactl_valid() argument
27 if (!sb && cmd != Q_SYNC) in generic_quotactl_valid()
33 switch (cmd) { in generic_quotactl_valid()
69 switch (cmd) { in generic_quotactl_valid()
81 if (cmd == Q_GETQUOTA) { in generic_quotactl_valid()
87 else if (cmd != Q_GETFMT && cmd != Q_SYNC && cmd != Q_GETINFO) in generic_quotactl_valid()
95 static int xqm_quotactl_valid(struct super_block *sb, int type, int cmd, qid_t id) in xqm_quotactl_valid() argument
104 switch (cmd) { in xqm_quotactl_valid()
132 if (cmd == Q_XGETQUOTA) { in xqm_quotactl_valid()
137 } else if (cmd != Q_XGETQSTAT && cmd != Q_XQUOTASYNC) { in xqm_quotactl_valid()
[all …]
Dcompat_ioctl.c117 static int do_ioctl32_pointer(unsigned int fd, unsigned int cmd, in do_ioctl32_pointer() argument
120 return sys_ioctl(fd, cmd, (unsigned long)compat_ptr(arg)); in do_ioctl32_pointer()
123 static int w_long(unsigned int fd, unsigned int cmd, unsigned long arg) in w_long() argument
130 err = sys_ioctl(fd, cmd, (unsigned long)&val); in w_long()
137 static int rw_long(unsigned int fd, unsigned int cmd, unsigned long arg) in rw_long() argument
147 err = sys_ioctl(fd, cmd, (unsigned long)&val); in rw_long()
163 static int do_video_get_event(unsigned int fd, unsigned int cmd, unsigned long arg) in do_video_get_event() argument
170 err = sys_ioctl(fd, cmd, (unsigned long) &kevent); in do_video_get_event()
194 static int do_video_stillpicture(unsigned int fd, unsigned int cmd, unsigned long arg) in do_video_stillpicture() argument
216 err = sys_ioctl(fd, cmd, (unsigned long) up_native); in do_video_stillpicture()
[all …]
Dnfsctl.c89 SYSCALL_DEFINE3(nfsservctl, int, cmd, struct nfsctl_arg __user *, arg, in SYSCALL_DEFINE3() argument
103 if (cmd < 0 || cmd >= ARRAY_SIZE(map) || !map[cmd].name) in SYSCALL_DEFINE3()
106 file = do_open(map[cmd].name, map[cmd].rsize ? O_RDWR : O_WRONLY); in SYSCALL_DEFINE3()
109 err = file->f_op->write(file, p, map[cmd].wsize, &file->f_pos); in SYSCALL_DEFINE3()
110 if (err >= 0 && map[cmd].rsize) in SYSCALL_DEFINE3()
111 err = file->f_op->read(file, res, map[cmd].rsize, &file->f_pos); in SYSCALL_DEFINE3()
Dioctl.c36 static long vfs_ioctl(struct file *filp, unsigned int cmd, in vfs_ioctl() argument
45 error = filp->f_op->unlocked_ioctl(filp, cmd, arg); in vfs_ioctl()
52 filp, cmd, arg); in vfs_ioctl()
373 static int file_ioctl(struct file *filp, unsigned int cmd, in file_ioctl() argument
379 switch (cmd) { in file_ioctl()
390 return vfs_ioctl(filp, cmd, arg); in file_ioctl()
486 int do_vfs_ioctl(struct file *filp, unsigned int fd, unsigned int cmd, in do_vfs_ioctl() argument
492 switch (cmd) { in do_vfs_ioctl()
537 error = file_ioctl(filp, cmd, arg); in do_vfs_ioctl()
539 error = vfs_ioctl(filp, cmd, arg); in do_vfs_ioctl()
[all …]
Dfcntl.c262 static long do_fcntl(int fd, unsigned int cmd, unsigned long arg, in do_fcntl() argument
267 switch (cmd) { in do_fcntl()
272 err = alloc_fd(arg, cmd == F_DUPFD_CLOEXEC ? O_CLOEXEC : 0); in do_fcntl()
296 err = fcntl_setlk(fd, filp, cmd, (struct flock __user *) arg); in do_fcntl()
338 SYSCALL_DEFINE3(fcntl, unsigned int, fd, unsigned int, cmd, unsigned long, arg) in SYSCALL_DEFINE3() argument
347 err = security_file_fcntl(filp, cmd, arg); in SYSCALL_DEFINE3()
353 err = do_fcntl(fd, cmd, arg, filp); in SYSCALL_DEFINE3()
361 SYSCALL_DEFINE3(fcntl64, unsigned int, fd, unsigned int, cmd, in SYSCALL_DEFINE3() argument
372 err = security_file_fcntl(filp, cmd, arg); in SYSCALL_DEFINE3()
379 switch (cmd) { in SYSCALL_DEFINE3()
[all …]
Dlocks.c256 static inline int flock_translate_cmd(int cmd) { in flock_translate_cmd() argument
257 if (cmd & LOCK_MAND) in flock_translate_cmd()
258 return cmd & (LOCK_MAND | LOCK_RW); in flock_translate_cmd()
259 switch (cmd) { in flock_translate_cmd()
272 unsigned int cmd) in flock_make_lock() argument
275 int type = flock_translate_cmd(cmd); in flock_make_lock()
1567 SYSCALL_DEFINE2(flock, unsigned int, fd, unsigned int, cmd) in SYSCALL_DEFINE2() argument
1579 can_sleep = !(cmd & LOCK_NB); in SYSCALL_DEFINE2()
1580 cmd &= ~LOCK_NB; in SYSCALL_DEFINE2()
1581 unlock = (cmd == LOCK_UN); in SYSCALL_DEFINE2()
[all …]
Dbad_inode.c59 unsigned int cmd, unsigned long arg) in bad_file_ioctl() argument
64 static long bad_file_unlocked_ioctl(struct file *file, unsigned cmd, in bad_file_unlocked_ioctl() argument
70 static long bad_file_compat_ioctl(struct file *file, unsigned int cmd, in bad_file_compat_ioctl() argument
112 static int bad_file_lock(struct file *file, int cmd, struct file_lock *fl) in bad_file_lock() argument
135 static int bad_file_flock(struct file *filp, int cmd, struct file_lock *fl) in bad_file_flock() argument
/fs/ext4/
Dioctl.c21 long ext4_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in ext4_ioctl() argument
27 ext4_debug("cmd = %u, arg = %lu\n", cmd, arg); in ext4_ioctl()
29 switch (cmd) { in ext4_ioctl()
272 long ext4_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ext4_compat_ioctl() argument
275 switch (cmd) { in ext4_compat_ioctl()
277 cmd = EXT4_IOC_GETFLAGS; in ext4_compat_ioctl()
280 cmd = EXT4_IOC_SETFLAGS; in ext4_compat_ioctl()
283 cmd = EXT4_IOC_GETVERSION; in ext4_compat_ioctl()
286 cmd = EXT4_IOC_SETVERSION; in ext4_compat_ioctl()
289 cmd = EXT4_IOC_GROUP_EXTEND; in ext4_compat_ioctl()
[all …]
/fs/ext3/
Dioctl.c21 int ext3_ioctl (struct inode * inode, struct file * filp, unsigned int cmd, in ext3_ioctl() argument
28 ext3_debug ("cmd = %u, arg = %lu\n", cmd, arg); in ext3_ioctl()
30 switch (cmd) { in ext3_ioctl()
300 long ext3_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ext3_compat_ioctl() argument
306 switch (cmd) { in ext3_compat_ioctl()
308 cmd = EXT3_IOC_GETFLAGS; in ext3_compat_ioctl()
311 cmd = EXT3_IOC_SETFLAGS; in ext3_compat_ioctl()
314 cmd = EXT3_IOC_GETVERSION; in ext3_compat_ioctl()
317 cmd = EXT3_IOC_SETVERSION; in ext3_compat_ioctl()
320 cmd = EXT3_IOC_GROUP_EXTEND; in ext3_compat_ioctl()
[all …]
/fs/ext2/
Dioctl.c21 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()
158 long ext2_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ext2_compat_ioctl() argument
161 switch (cmd) { in ext2_compat_ioctl()
163 cmd = EXT2_IOC_GETFLAGS; in ext2_compat_ioctl()
166 cmd = EXT2_IOC_SETFLAGS; in ext2_compat_ioctl()
169 cmd = EXT2_IOC_GETVERSION; in ext2_compat_ioctl()
172 cmd = EXT2_IOC_SETVERSION; in ext2_compat_ioctl()
177 return ext2_ioctl(file, cmd, (unsigned long) compat_ptr(arg)); in ext2_compat_ioctl()
/fs/ocfs2/
Dlocks.c40 int cmd, struct file_lock *fl) in ocfs2_do_flock() argument
48 if (!IS_SETLKW(cmd)) in ocfs2_do_flock()
93 static int ocfs2_do_funlock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_do_funlock() argument
109 int ocfs2_flock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_flock() argument
124 return ocfs2_do_funlock(file, cmd, fl); in ocfs2_flock()
126 return ocfs2_do_flock(file, inode, cmd, fl); in ocfs2_flock()
129 int ocfs2_lock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_lock() argument
139 return ocfs2_plock(osb->cconn, OCFS2_I(inode)->ip_blkno, file, cmd, fl); in ocfs2_lock()
Dioctl.c111 long ocfs2_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in ocfs2_ioctl() argument
120 switch (cmd) { in ocfs2_ioctl()
146 return ocfs2_change_file_space(filp, cmd, &sr); in ocfs2_ioctl()
170 long ocfs2_compat_ioctl(struct file *file, unsigned cmd, unsigned long arg) in ocfs2_compat_ioctl() argument
172 switch (cmd) { in ocfs2_compat_ioctl()
174 cmd = OCFS2_IOC_GETFLAGS; in ocfs2_compat_ioctl()
177 cmd = OCFS2_IOC_SETFLAGS; in ocfs2_compat_ioctl()
191 return ocfs2_ioctl(file, cmd, arg); in ocfs2_compat_ioctl()
Dioctl.h13 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);
Dlocks.h29 int ocfs2_flock(struct file *file, int cmd, struct file_lock *fl);
30 int ocfs2_lock(struct file *file, int cmd, struct file_lock *fl);
/fs/reiserfs/
Dioctl.c23 int reiserfs_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, in reiserfs_ioctl() argument
29 switch (cmd) { in reiserfs_ioctl()
118 long reiserfs_compat_ioctl(struct file *file, unsigned int cmd, in reiserfs_compat_ioctl() argument
125 switch (cmd) { in reiserfs_compat_ioctl()
127 cmd = REISERFS_IOC_UNPACK; in reiserfs_compat_ioctl()
130 cmd = REISERFS_IOC_GETFLAGS; in reiserfs_compat_ioctl()
133 cmd = REISERFS_IOC_SETFLAGS; in reiserfs_compat_ioctl()
136 cmd = REISERFS_IOC_GETVERSION; in reiserfs_compat_ioctl()
139 cmd = REISERFS_IOC_SETVERSION; in reiserfs_compat_ioctl()
145 ret = reiserfs_ioctl(inode, file, cmd, (unsigned long) compat_ptr(arg)); in reiserfs_compat_ioctl()
/fs/autofs4/
Ddev-ioctl.c72 static int check_dev_ioctl_version(int cmd, struct autofs_dev_ioctl *param) in check_dev_ioctl_version() argument
82 param->ver_major, param->ver_minor, cmd); in check_dev_ioctl_version()
129 static int validate_dev_ioctl(int cmd, struct autofs_dev_ioctl *param) in validate_dev_ioctl() argument
133 err = check_dev_ioctl_version(cmd, param); in validate_dev_ioctl()
136 "supplied for cmd(0x%08x)", cmd); in validate_dev_ioctl()
146 cmd); in validate_dev_ioctl()
153 cmd); in validate_dev_ioctl()
686 #define cmd_idx(cmd) (cmd - _IOC_NR(AUTOFS_DEV_IOCTL_IOC_FIRST)) argument
688 static ioctl_fn lookup_dev_ioctl(unsigned int cmd) in lookup_dev_ioctl() argument
691 int cmd; in lookup_dev_ioctl() member
[all …]
/fs/jfs/
Dioctl.c55 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/linux-2.6/
Dxfs_ioctl32.c50 #define _NATIVE_IOC(cmd, type) \ argument
51 _IOC(_IOC_DIR(cmd), _IOC_TYPE(cmd), _IOC_NR(cmd), sizeof(type))
253 unsigned int cmd, in xfs_compat_ioc_bulkstat() argument
292 if (cmd == XFS_IOC_FSINUMBERS_32) { in xfs_compat_ioc_bulkstat()
295 } else if (cmd == XFS_IOC_FSBULKSTAT_SINGLE_32) { in xfs_compat_ioc_bulkstat()
301 } else if (cmd == XFS_IOC_FSBULKSTAT_32) { in xfs_compat_ioc_bulkstat()
537 unsigned cmd, in xfs_file_compat_ioctl() argument
552 switch (cmd) { in xfs_file_compat_ioctl()
570 return xfs_file_ioctl(filp, cmd, p); in xfs_file_compat_ioctl()
584 return xfs_file_ioctl(filp, cmd, p); in xfs_file_compat_ioctl()
[all …]
Dxfs_ioctl.h27 unsigned int cmd,
32 unsigned int cmd,
76 unsigned int cmd,
82 unsigned int cmd,
Dxfs_ioctl.c75 unsigned int cmd, in xfs_find_handle() argument
84 switch (cmd) { in xfs_find_handle()
139 if (cmd != XFS_IOC_PATH_TO_FSHANDLE) { in xfs_find_handle()
631 unsigned int cmd, in xfs_ioc_space() argument
659 error = xfs_change_file_space(ip, cmd, bf, filp->f_pos, attr_flags); in xfs_ioc_space()
666 unsigned int cmd, in xfs_ioc_bulkstat() argument
696 if (cmd == XFS_IOC_FSINUMBERS) in xfs_ioc_bulkstat()
699 else if (cmd == XFS_IOC_FSBULKSTAT_SINGLE) in xfs_ioc_bulkstat()
1234 unsigned int cmd, in xfs_ioc_getbmap() argument
1246 bmx.bmv_iflags = (cmd == XFS_IOC_GETBMAPA ? BMV_IF_ATTRFORK : 0); in xfs_ioc_getbmap()
[all …]
/fs/ubifs/
Dioctl.c148 long ubifs_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ubifs_ioctl() argument
153 switch (cmd) { in ubifs_ioctl()
192 long ubifs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ubifs_compat_ioctl() argument
194 switch (cmd) { in ubifs_compat_ioctl()
196 cmd = FS_IOC_GETFLAGS; in ubifs_compat_ioctl()
199 cmd = FS_IOC_SETFLAGS; in ubifs_compat_ioctl()
204 return ubifs_ioctl(file, cmd, (unsigned long)compat_ptr(arg)); in ubifs_compat_ioctl()
/fs/ncpfs/
Dioctl.c266 unsigned int cmd, unsigned long arg) in __ncp_ioctl() argument
275 switch (cmd) { in __ncp_ioctl()
285 if (cmd == NCP_IOC_NCPREQUEST_32) { in __ncp_ioctl()
364 if (cmd == NCP_IOC_GETMOUNTUID16) { in __ncp_ioctl()
369 } else if (cmd == NCP_IOC_GETMOUNTUID32) { in __ncp_ioctl()
525 switch (rqdata.cmd) { in __ncp_ioctl()
551 if (rqdata.cmd == NCP_LOCK_CLEAR) in __ncp_ioctl()
563 switch (rqdata.cmd) in __ncp_ioctl()
648 if (cmd == NCP_IOC_SETOBJECTNAME_32) { in __ncp_ioctl()
702 if (cmd == NCP_IOC_GETPRIVATEDATA_32) { in __ncp_ioctl()
[all …]
/fs/nfs/
Dfile.c55 static int nfs_lock(struct file *filp, int cmd, struct file_lock *fl);
56 static int nfs_flock(struct file *filp, int cmd, struct file_lock *fl);
553 static int do_getlk(struct file *filp, int cmd, struct file_lock *fl) in do_getlk() argument
572 status = NFS_PROTO(inode)->lock(filp, cmd, fl); in do_getlk()
601 static int do_unlk(struct file *filp, int cmd, struct file_lock *fl) in do_unlk() argument
619 status = NFS_PROTO(inode)->lock(filp, cmd, fl); in do_unlk()
626 static int do_setlk(struct file *filp, int cmd, struct file_lock *fl) in do_setlk() argument
642 status = NFS_PROTO(inode)->lock(filp, cmd, fl); in do_setlk()
662 static int nfs_lock(struct file *filp, int cmd, struct file_lock *fl) in nfs_lock() argument
685 if (IS_GETLK(cmd)) in nfs_lock()
[all …]
/fs/gfs2/
Dops_file.c290 static long gfs2_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in gfs2_ioctl() argument
292 switch(cmd) { in gfs2_ioctl()
597 struct file *file, int cmd, struct file_lock *fl) in gfs2_lm_plock() argument
602 sdp->sd_lockstruct.ls_lockspace, name, file, cmd, fl); in gfs2_lm_plock()
625 static int gfs2_lock(struct file *file, int cmd, struct file_lock *fl) in gfs2_lock() argument
638 if (cmd == F_CANCELLK) { in gfs2_lock()
640 cmd = F_SETLK; in gfs2_lock()
643 if (IS_GETLK(cmd)) in gfs2_lock()
648 return gfs2_lm_plock(sdp, &name, file, cmd, fl); in gfs2_lock()
651 static int do_flock(struct file *file, int cmd, struct file_lock *fl) in do_flock() argument
[all …]
/fs/coda/
Dpioctl.c29 unsigned int cmd, unsigned long user_data);
50 unsigned int cmd, unsigned long user_data) in coda_pioctl() argument
88 error = venus_pioctl(inode->i_sb, &(cnp->c_fid), cmd, &data); in coda_pioctl()

123