Lines Matching defs:arg
37 static int setfl(int fd, struct file * filp, unsigned int arg)
46 if (((arg ^ filp->f_flags) & O_APPEND) && IS_APPEND(inode))
50 if ((arg & O_NOATIME) && !(filp->f_flags & O_NOATIME))
56 if (arg & O_NDELAY)
57 arg |= O_NONBLOCK;
61 (arg & O_DIRECT) &&
66 error = filp->f_op->check_flags(arg);
73 if (((arg ^ filp->f_flags) & FASYNC) && filp->f_op->fasync) {
74 error = filp->f_op->fasync(fd, filp, (arg & FASYNC) != 0);
81 filp->f_flags = (arg & SETFL_MASK) | (filp->f_flags & ~SETFL_MASK);
167 static int f_setown_ex(struct file *filp, unsigned long arg)
169 struct f_owner_ex __user *owner_p = (void __user *)arg;
207 static int f_getown_ex(struct file *filp, unsigned long arg)
209 struct f_owner_ex __user *owner_p = (void __user *)arg;
247 static int f_getowner_uids(struct file *filp, unsigned long arg)
250 uid_t __user *dst = (void __user *)arg;
265 static int f_getowner_uids(struct file *filp, unsigned long arg)
287 unsigned long arg)
290 u64 __user *argp = (u64 __user *)arg;
314 static long do_fcntl(int fd, unsigned int cmd, unsigned long arg,
317 void __user *argp = (void __user *)arg;
318 int argi = (int)arg;
380 err = f_getown_ex(filp, arg);
383 err = f_setown_ex(filp, arg);
386 err = f_getowner_uids(filp, arg);
392 /* arg == 0 restores default behaviour. */
418 err = fcntl_rw_hint(filp, cmd, arg);
439 SYSCALL_DEFINE3(fcntl, unsigned int, fd, unsigned int, cmd, unsigned long, arg)
452 err = security_file_fcntl(f.file, cmd, arg);
454 err = do_fcntl(fd, cmd, arg, f.file);
464 unsigned long, arg)
466 void __user *argp = (void __user *)arg;
479 err = security_file_fcntl(f.file, cmd, arg);
503 err = do_fcntl(fd, cmd, arg, f.file);
602 compat_ulong_t arg)
616 err = security_file_fcntl(f.file, cmd, arg);
622 err = get_compat_flock(&flock, compat_ptr(arg));
630 err = put_compat_flock(&flock, compat_ptr(arg));
634 err = get_compat_flock64(&flock, compat_ptr(arg));
639 err = put_compat_flock64(&flock, compat_ptr(arg));
643 err = get_compat_flock(&flock, compat_ptr(arg));
652 err = get_compat_flock64(&flock, compat_ptr(arg));
658 err = do_fcntl(fd, cmd, arg, f.file);
667 compat_ulong_t, arg)
669 return do_compat_fcntl64(fd, cmd, arg);
673 compat_ulong_t, arg)
684 return do_compat_fcntl64(fd, cmd, arg);