Lines Matching refs:fd

39 static int setfl(int fd, struct file * filp, unsigned int arg)  in setfl()  argument
76 error = filp->f_op->fasync(fd, filp, (arg & FASYNC) != 0); in setfl()
398 static long f_dupfd_query(int fd, struct file *filp) in f_dupfd_query() argument
400 CLASS(fd_raw, f)(fd); in f_dupfd_query()
446 static long do_fcntl(int fd, unsigned int cmd, unsigned long arg, in do_fcntl() argument
468 err = get_close_on_exec(fd) ? FD_CLOEXEC : 0; in do_fcntl()
472 set_close_on_exec(fd, argi & FD_CLOEXEC); in do_fcntl()
478 err = setfl(fd, filp, argi); in do_fcntl()
501 err = fcntl_setlk(fd, filp, cmd, &flock); in do_fcntl()
536 err = fcntl_setlease(fd, filp, argi); in do_fcntl()
539 err = fcntl_dirnotify(fd, filp, argi); in do_fcntl()
576 SYSCALL_DEFINE3(fcntl, unsigned int, fd, unsigned int, cmd, unsigned long, arg) in SYSCALL_DEFINE3() argument
578 CLASS(fd_raw, f)(fd); in SYSCALL_DEFINE3()
591 err = do_fcntl(fd, cmd, arg, fd_file(f)); in SYSCALL_DEFINE3()
597 SYSCALL_DEFINE3(fcntl64, unsigned int, fd, unsigned int, cmd, in SYSCALL_DEFINE3() argument
601 CLASS(fd_raw, f)(fd); in SYSCALL_DEFINE3()
634 err = fcntl_setlk64(fd, fd_file(f), cmd, &flock); in SYSCALL_DEFINE3()
637 err = do_fcntl(fd, cmd, arg, fd_file(f)); in SYSCALL_DEFINE3()
732 static long do_compat_fcntl64(unsigned int fd, unsigned int cmd, in do_compat_fcntl64() argument
735 CLASS(fd_raw, f)(fd); in do_compat_fcntl64()
777 err = fcntl_setlk(fd, fd_file(f), convert_fcntl_cmd(cmd), &flock); in do_compat_fcntl64()
786 err = fcntl_setlk(fd, fd_file(f), convert_fcntl_cmd(cmd), &flock); in do_compat_fcntl64()
789 err = do_fcntl(fd, cmd, arg, fd_file(f)); in do_compat_fcntl64()
795 COMPAT_SYSCALL_DEFINE3(fcntl64, unsigned int, fd, unsigned int, cmd, in COMPAT_SYSCALL_DEFINE3() argument
798 return do_compat_fcntl64(fd, cmd, arg); in COMPAT_SYSCALL_DEFINE3()
801 COMPAT_SYSCALL_DEFINE3(fcntl, unsigned int, fd, unsigned int, cmd, in COMPAT_SYSCALL_DEFINE3() argument
813 return do_compat_fcntl64(fd, cmd, arg); in COMPAT_SYSCALL_DEFINE3()
846 int fd, int reason, enum pid_type type) in send_sigio_to_task() argument
890 si.si_fd = fd; in send_sigio_to_task()
900 void send_sigio(struct fown_struct *fown, int fd, int band) in send_sigio() argument
918 send_sigio_to_task(p, fown, fd, band, type); in send_sigio()
923 send_sigio_to_task(p, fown, fd, band, type); in send_sigio()
1038 struct fasync_struct *fasync_insert_entry(int fd, struct file *filp, struct fasync_struct **fapp, s… in fasync_insert_entry() argument
1049 fa->fa_fd = fd; in fasync_insert_entry()
1057 new->fa_fd = fd; in fasync_insert_entry()
1072 static int fasync_add_entry(int fd, struct file *filp, struct fasync_struct **fapp) in fasync_add_entry() argument
1087 if (fasync_insert_entry(fd, filp, fapp, new)) { in fasync_add_entry()
1101 int fasync_helper(int fd, struct file * filp, int on, struct fasync_struct **fapp) in fasync_helper() argument
1105 return fasync_add_entry(fd, filp, fapp); in fasync_helper()