Lines Matching defs:arg
37 * @arg: command-specific argument for ioctl
44 long vfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
51 error = filp->f_op->unlocked_ioctl(filp, cmd, arg);
774 unsigned int cmd, unsigned long arg)
776 void __user *argp = (void __user *)arg;
821 return ioctl_file_clone(filp, arg, 0, 0, 0);
831 return vfs_ioctl(filp, cmd, arg);
857 SYSCALL_DEFINE3(ioctl, unsigned int, fd, unsigned int, cmd, unsigned long, arg)
865 error = security_file_ioctl(f.file, cmd, arg);
869 error = do_vfs_ioctl(f.file, fd, cmd, arg);
871 error = vfs_ioctl(f.file, cmd, arg);
883 * @arg: The argument to the ioctl.
905 long compat_ptr_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
910 return file->f_op->unlocked_ioctl(file, cmd, (unsigned long)compat_ptr(arg));
915 compat_ulong_t, arg)
923 error = security_file_ioctl_compat(f.file, cmd, arg);
930 error = ioctl_file_clone(f.file, arg, 0, 0, 0);
937 error = compat_ioctl_preallocate(f.file, 0, compat_ptr(arg));
942 compat_ptr(arg));
946 compat_ptr(arg));
966 (unsigned long)compat_ptr(arg));
971 error = f.file->f_op->compat_ioctl(f.file, cmd, arg);