Lines Matching defs:error
39 * Returns 0 on success, -errno on error.
43 int error = -ENOTTY;
48 error = filp->f_op->unlocked_ioctl(filp, cmd, arg);
49 if (error == -ENOIOCTLCMD)
50 error = -ENOTTY;
52 return error;
60 int error, ur_block;
66 error = get_user(ur_block, p);
67 if (error)
68 return error;
74 error = bmap(inode, &block);
77 error = -ERANGE;
83 if (error)
89 error = -EFAULT;
91 return error;
106 * Returns 0 on success, -errno on error, 1 if this was the last
162 * Returns 0 on success, or a negative error on failure.
201 int error;
216 error = inode->i_op->fiemap(inode, &fieinfo, fiemap.fm_start,
222 error = -EFAULT;
224 return error;
548 int on, error;
550 error = get_user(on, argp);
551 if (error)
552 return error;
565 return error;
572 int on, error;
574 error = get_user(on, argp);
575 if (error)
576 return error;
583 error = filp->f_op->fasync(fd, filp, on);
585 error = -ENOTTY;
587 return error < 0 ? error : 0;
742 int error;
747 error = security_file_ioctl(f.file, cmd, arg);
748 if (error)
751 error = do_vfs_ioctl(f.file, fd, cmd, arg);
752 if (error == -ENOIOCTLCMD)
753 error = vfs_ioctl(f.file, cmd, arg);
757 return error;
797 int error;
802 error = security_file_ioctl_compat(f.file, cmd, arg);
803 if (error)
809 error = ioctl_file_clone(f.file, arg, 0, 0, 0);
816 error = compat_ioctl_preallocate(f.file, 0, compat_ptr(arg));
820 error = compat_ioctl_preallocate(f.file, FALLOC_FL_PUNCH_HOLE,
824 error = compat_ioctl_preallocate(f.file, FALLOC_FL_ZERO_RANGE,
835 error = do_vfs_ioctl(f.file, fd, cmd,
837 if (error != -ENOIOCTLCMD)
841 error = f.file->f_op->compat_ioctl(f.file, cmd, arg);
842 if (error == -ENOIOCTLCMD)
843 error = -ENOTTY;
850 return error;