Lines Matching refs:fd

32 static int setfl(int fd, struct file * filp, unsigned long arg)  in setfl()  argument
69 error = filp->f_op->fasync(fd, filp, (arg & FASYNC) != 0); in setfl()
243 static long do_fcntl(int fd, unsigned int cmd, unsigned long arg, in do_fcntl() argument
256 err = get_close_on_exec(fd) ? FD_CLOEXEC : 0; in do_fcntl()
260 set_close_on_exec(fd, arg & FD_CLOEXEC); in do_fcntl()
266 err = setfl(fd, filp, arg); in do_fcntl()
283 err = fcntl_setlk(fd, filp, cmd, (struct flock __user *) arg); in do_fcntl()
324 err = fcntl_setlease(fd, filp, arg); in do_fcntl()
327 err = fcntl_dirnotify(fd, filp, arg); in do_fcntl()
356 SYSCALL_DEFINE3(fcntl, unsigned int, fd, unsigned int, cmd, unsigned long, arg) in SYSCALL_DEFINE3() argument
358 struct fd f = fdget_raw(fd); in SYSCALL_DEFINE3()
371 err = do_fcntl(fd, cmd, arg, f.file); in SYSCALL_DEFINE3()
380 SYSCALL_DEFINE3(fcntl64, unsigned int, fd, unsigned int, cmd, in SYSCALL_DEFINE3() argument
383 struct fd f = fdget_raw(fd); in SYSCALL_DEFINE3()
407 err = fcntl_setlk64(fd, f.file, cmd, in SYSCALL_DEFINE3()
411 err = do_fcntl(fd, cmd, arg, f.file); in SYSCALL_DEFINE3()
450 int fd, int reason, int group) in send_sigio_to_task() argument
481 si.si_fd = fd; in send_sigio_to_task()
490 void send_sigio(struct fown_struct *fown, int fd, int band) in send_sigio() argument
511 send_sigio_to_task(p, fown, fd, band, group); in send_sigio()
623 struct fasync_struct *fasync_insert_entry(int fd, struct file *filp, struct fasync_struct **fapp, s… in fasync_insert_entry() argument
634 fa->fa_fd = fd; in fasync_insert_entry()
642 new->fa_fd = fd; in fasync_insert_entry()
657 static int fasync_add_entry(int fd, struct file *filp, struct fasync_struct **fapp) in fasync_add_entry() argument
672 if (fasync_insert_entry(fd, filp, fapp, new)) { in fasync_add_entry()
686 int fasync_helper(int fd, struct file * filp, int on, struct fasync_struct **fapp) in fasync_helper() argument
690 return fasync_add_entry(fd, filp, fapp); in fasync_helper()