fd 15 include/asm-generic/syscalls.h unsigned long fd, unsigned long pgoff); fd 21 include/asm-generic/syscalls.h unsigned long fd, off_t pgoff); fd 343 include/drm/ttm/ttm_object.h int fd, u32 *handle); fd 248 include/linux/audit.h extern void __audit_mmap_fd(int fd, int flags); fd 319 include/linux/audit.h static inline void audit_mmap_fd(int fd, int flags) fd 322 include/linux/audit.h __audit_mmap_fd(fd, flags); fd 427 include/linux/audit.h static inline void audit_mmap_fd(int fd, int flags) fd 47 include/linux/bpf.h struct bpf_map *bpf_map_get(struct fd f); fd 333 include/linux/compat.h asmlinkage ssize_t compat_sys_readv(compat_ulong_t fd, fd 335 include/linux/compat.h asmlinkage ssize_t compat_sys_writev(compat_ulong_t fd, fd 337 include/linux/compat.h asmlinkage ssize_t compat_sys_preadv(compat_ulong_t fd, fd 340 include/linux/compat.h asmlinkage ssize_t compat_sys_pwritev(compat_ulong_t fd, fd 345 include/linux/compat.h asmlinkage long compat_sys_preadv64(unsigned long fd, fd 351 include/linux/compat.h asmlinkage long compat_sys_pwritev64(unsigned long fd, fd 488 include/linux/compat.h asmlinkage long compat_sys_newfstat(unsigned int fd, fd 492 include/linux/compat.h asmlinkage long compat_sys_fstatfs(unsigned int fd, fd 497 include/linux/compat.h asmlinkage long compat_sys_fstatfs64(unsigned int fd, compat_size_t sz, fd 499 include/linux/compat.h asmlinkage long compat_sys_fcntl64(unsigned int fd, unsigned int cmd, fd 501 include/linux/compat.h asmlinkage long compat_sys_fcntl(unsigned int fd, unsigned int cmd, fd 515 include/linux/compat.h asmlinkage long compat_sys_old_readdir(unsigned int fd, fd 518 include/linux/compat.h asmlinkage long compat_sys_getdents(unsigned int fd, fd 522 include/linux/compat.h asmlinkage long compat_sys_getdents64(unsigned int fd, fd 526 include/linux/compat.h asmlinkage long compat_sys_vmsplice(int fd, const struct compat_iovec __user *, fd 562 include/linux/compat.h asmlinkage long compat_sys_setsockopt(int fd, int level, int optname, fd 564 include/linux/compat.h asmlinkage long compat_sys_sendmsg(int fd, struct compat_msghdr __user *msg, fd 566 include/linux/compat.h asmlinkage long compat_sys_sendmmsg(int fd, struct compat_mmsghdr __user *mmsg, fd 568 include/linux/compat.h asmlinkage long compat_sys_recvmsg(int fd, struct compat_msghdr __user *msg, fd 570 include/linux/compat.h asmlinkage long compat_sys_recv(int fd, void __user *buf, compat_size_t len, fd 572 include/linux/compat.h asmlinkage long compat_sys_recvfrom(int fd, void __user *buf, compat_size_t len, fd 575 include/linux/compat.h asmlinkage long compat_sys_recvmmsg(int fd, struct compat_mmsghdr __user *mmsg, fd 635 include/linux/compat.h asmlinkage long compat_sys_ioctl(unsigned int fd, unsigned int cmd, fd 640 include/linux/compat.h asmlinkage long compat_sys_getsockopt(int fd, int level, int optname, fd 192 include/linux/dma-buf.h struct dma_buf *dma_buf_get(int fd); fd 41 include/linux/dnotify.h static inline int fcntl_dirnotify(int fd, struct file *filp, unsigned long arg) fd 35 include/linux/eventfd.h struct file *eventfd_fget(int fd); fd 36 include/linux/eventfd.h struct eventfd_ctx *eventfd_ctx_fdget(int fd); fd 54 include/linux/eventfd.h static inline struct eventfd_ctx *eventfd_ctx_fdget(int fd) fd 26 include/linux/fdtable.h struct file __rcu **fd; /* current fd array */ fd 32 include/linux/fdtable.h static inline bool close_on_exec(int fd, const struct fdtable *fdt) fd 34 include/linux/fdtable.h return test_bit(fd, fdt->close_on_exec); fd 37 include/linux/fdtable.h static inline bool fd_is_open(int fd, const struct fdtable *fdt) fd 39 include/linux/fdtable.h return test_bit(fd, fdt->open_fds); fd 75 include/linux/fdtable.h static inline struct file *__fcheck_files(struct files_struct *files, unsigned int fd) fd 79 include/linux/fdtable.h if (fd < fdt->max_fds) fd 80 include/linux/fdtable.h return rcu_dereference_raw(fdt->fd[fd]); fd 84 include/linux/fdtable.h static inline struct file *fcheck_files(struct files_struct *files, unsigned int fd) fd 89 include/linux/fdtable.h return __fcheck_files(files, fd); fd 95 include/linux/fdtable.h #define fcheck(fd) fcheck_files(current->files, fd) fd 112 include/linux/fdtable.h unsigned int fd, struct file *file); fd 114 include/linux/fdtable.h unsigned int fd); fd 36 include/linux/file.h static inline void fdput(struct fd fd) fd 38 include/linux/file.h if (fd.flags & FDPUT_FPUT) fd 39 include/linux/file.h fput(fd.file); fd 42 include/linux/file.h extern struct file *fget(unsigned int fd); fd 43 include/linux/file.h extern struct file *fget_raw(unsigned int fd); fd 44 include/linux/file.h extern unsigned long __fdget(unsigned int fd); fd 45 include/linux/file.h extern unsigned long __fdget_raw(unsigned int fd); fd 46 include/linux/file.h extern unsigned long __fdget_pos(unsigned int fd); fd 48 include/linux/file.h static inline struct fd __to_fd(unsigned long v) fd 50 include/linux/file.h return (struct fd){(struct file *)(v & ~3),v & 3}; fd 53 include/linux/file.h static inline struct fd fdget(unsigned int fd) fd 55 include/linux/file.h return __to_fd(__fdget(fd)); fd 58 include/linux/file.h static inline struct fd fdget_raw(unsigned int fd) fd 60 include/linux/file.h return __to_fd(__fdget_raw(fd)); fd 64 include/linux/file.h extern int replace_fd(unsigned fd, struct file *file, unsigned flags); fd 65 include/linux/file.h extern void set_close_on_exec(unsigned int fd, int flag); fd 66 include/linux/file.h extern bool get_close_on_exec(unsigned int fd); fd 70 include/linux/file.h extern void put_unused_fd(unsigned int fd); fd 72 include/linux/file.h extern void fd_install(unsigned int fd, struct file *file); fd 959 include/linux/fs.h extern void send_sigio(struct fown_struct *fown, int fd, int band); fd 972 include/linux/fs.h extern int fcntl_setlease(unsigned int fd, struct file *filp, long arg); fd 1004 include/linux/fs.h static inline int fcntl_setlk(unsigned int fd, struct file *file, fd 1017 include/linux/fs.h static inline int fcntl_setlk64(unsigned int fd, struct file *file, fd 1023 include/linux/fs.h static inline int fcntl_setlease(unsigned int fd, struct file *filp, long arg) fd 2588 include/linux/fs.h extern int do_vfs_ioctl(struct file *filp, unsigned int fd, unsigned int cmd, fd 320 include/linux/fsnotify_backend.h extern int fsnotify_fasync(int fd, struct file *file, int on); fd 220 include/linux/net.h struct socket *sockfd_lookup(int fd, int *err); fd 83 include/linux/posix-clock.h int fd, struct file *file, int on); fd 58 include/linux/posix-timers.h #define FD_TO_CLOCKID(fd) ((~(clockid_t) (fd) << 3) | CLOCKFD) fd 46 include/linux/proc_ns.h extern struct file *proc_ns_fget(int fd); fd 57 include/linux/proc_ns.h static inline struct file *proc_ns_fget(int fd) fd 322 include/linux/socket.h extern long __sys_recvmsg(int fd, struct msghdr __user *msg, unsigned flags); fd 323 include/linux/socket.h extern long __sys_sendmsg(int fd, struct msghdr __user *msg, unsigned flags); fd 324 include/linux/socket.h extern int __sys_recvmmsg(int fd, struct mmsghdr __user *mmsg, unsigned int vlen, fd 326 include/linux/socket.h extern int __sys_sendmmsg(int fd, struct mmsghdr __user *mmsg, fd 12 include/linux/sungem_phy.h int (*setup_forced)(struct mii_phy *phy, int speed, int fd); fd 59 include/linux/sunrpc/svcsock.h bool svc_alien_sock(struct net *net, int fd); fd 60 include/linux/sunrpc/svcsock.h int svc_addsock(struct svc_serv *serv, const int fd, fd 384 include/linux/syscalls.h asmlinkage long sys_fsync(unsigned int fd); fd 385 include/linux/syscalls.h asmlinkage long sys_fdatasync(unsigned int fd); fd 393 include/linux/syscalls.h asmlinkage long sys_ftruncate(unsigned int fd, unsigned long length); fd 400 include/linux/syscalls.h asmlinkage long sys_fstatfs(unsigned int fd, struct statfs __user *buf); fd 401 include/linux/syscalls.h asmlinkage long sys_fstatfs64(unsigned int fd, size_t sz, fd 405 include/linux/syscalls.h asmlinkage long sys_fstat(unsigned int fd, fd 411 include/linux/syscalls.h asmlinkage long sys_newfstat(unsigned int fd, struct stat __user *statbuf); fd 416 include/linux/syscalls.h asmlinkage long sys_fstat64(unsigned long fd, struct stat64 __user *statbuf); fd 420 include/linux/syscalls.h asmlinkage long sys_ftruncate64(unsigned int fd, loff_t length); fd 427 include/linux/syscalls.h asmlinkage long sys_fsetxattr(int fd, const char __user *name, fd 433 include/linux/syscalls.h asmlinkage long sys_fgetxattr(int fd, const char __user *name, fd 439 include/linux/syscalls.h asmlinkage long sys_flistxattr(int fd, char __user *list, size_t size); fd 444 include/linux/syscalls.h asmlinkage long sys_fremovexattr(int fd, const char __user *name); fd 456 include/linux/syscalls.h asmlinkage long sys_fadvise64(int fd, loff_t offset, size_t len, int advice); fd 457 include/linux/syscalls.h asmlinkage long sys_fadvise64_64(int fd, loff_t offset, loff_t len, int advice); fd 479 include/linux/syscalls.h asmlinkage long sys_fchmod(unsigned int fd, umode_t mode); fd 481 include/linux/syscalls.h asmlinkage long sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg); fd 483 include/linux/syscalls.h asmlinkage long sys_fcntl64(unsigned int fd, fd 492 include/linux/syscalls.h asmlinkage long sys_ioctl(unsigned int fd, unsigned int cmd, fd 494 include/linux/syscalls.h asmlinkage long sys_flock(unsigned int fd, unsigned int cmd); fd 515 include/linux/syscalls.h asmlinkage long sys_close(unsigned int fd); fd 522 include/linux/syscalls.h asmlinkage long sys_fchown(unsigned int fd, uid_t user, gid_t group); fd 528 include/linux/syscalls.h asmlinkage long sys_fchown16(unsigned int fd, old_uid_t user, old_gid_t group); fd 553 include/linux/syscalls.h asmlinkage long sys_lseek(unsigned int fd, off_t offset, fd 555 include/linux/syscalls.h asmlinkage long sys_llseek(unsigned int fd, unsigned long offset_high, fd 558 include/linux/syscalls.h asmlinkage long sys_read(unsigned int fd, char __user *buf, size_t count); fd 559 include/linux/syscalls.h asmlinkage long sys_readahead(int fd, loff_t offset, size_t count); fd 560 include/linux/syscalls.h asmlinkage long sys_readv(unsigned long fd, fd 563 include/linux/syscalls.h asmlinkage long sys_write(unsigned int fd, const char __user *buf, fd 565 include/linux/syscalls.h asmlinkage long sys_writev(unsigned long fd, fd 568 include/linux/syscalls.h asmlinkage long sys_pread64(unsigned int fd, char __user *buf, fd 570 include/linux/syscalls.h asmlinkage long sys_pwrite64(unsigned int fd, const char __user *buf, fd 572 include/linux/syscalls.h asmlinkage long sys_preadv(unsigned long fd, const struct iovec __user *vec, fd 574 include/linux/syscalls.h asmlinkage long sys_pwritev(unsigned long fd, const struct iovec __user *vec, fd 579 include/linux/syscalls.h asmlinkage long sys_fchdir(unsigned int fd); fd 584 include/linux/syscalls.h asmlinkage long sys_getdents(unsigned int fd, fd 587 include/linux/syscalls.h asmlinkage long sys_getdents64(unsigned int fd, fd 591 include/linux/syscalls.h asmlinkage long sys_setsockopt(int fd, int level, int optname, fd 593 include/linux/syscalls.h asmlinkage long sys_getsockopt(int fd, int level, int optname, fd 604 include/linux/syscalls.h asmlinkage long sys_sendmsg(int fd, struct msghdr __user *msg, unsigned flags); fd 605 include/linux/syscalls.h asmlinkage long sys_sendmmsg(int fd, struct mmsghdr __user *msg, fd 610 include/linux/syscalls.h asmlinkage long sys_recvmsg(int fd, struct msghdr __user *msg, unsigned flags); fd 611 include/linux/syscalls.h asmlinkage long sys_recvmmsg(int fd, struct mmsghdr __user *msg, fd 625 include/linux/syscalls.h asmlinkage long sys_epoll_ctl(int epfd, int op, int fd, fd 741 include/linux/syscalls.h asmlinkage long sys_inotify_add_watch(int fd, const char __user *path, fd 743 include/linux/syscalls.h asmlinkage long sys_inotify_rm_watch(int fd, __s32 wd); fd 745 include/linux/syscalls.h asmlinkage long sys_spu_run(int fd, __u32 __user *unpc, fd 748 include/linux/syscalls.h unsigned int flags, umode_t mode, int fd); fd 786 include/linux/syscalls.h asmlinkage long sys_vmsplice(int fd, const struct iovec __user *iov, fd 791 include/linux/syscalls.h asmlinkage long sys_sync_file_range(int fd, loff_t offset, loff_t nbytes, fd 793 include/linux/syscalls.h asmlinkage long sys_sync_file_range2(int fd, unsigned int flags, fd 811 include/linux/syscalls.h asmlinkage long sys_fallocate(int fd, int mode, loff_t offset, loff_t len); fd 821 include/linux/syscalls.h u64 mask, int fd, fd 823 include/linux/syscalls.h asmlinkage long sys_syncfs(int fd); fd 850 include/linux/syscalls.h unsigned long fd, unsigned long pgoff); fd 858 include/linux/syscalls.h asmlinkage long sys_setns(int fd, int nstype); fd 874 include/linux/syscalls.h asmlinkage long sys_finit_module(int fd, const char __user *uargs, int flags); fd 564 include/linux/usb/composite.h struct usb_function_driver *fd; fd 439 include/linux/wimax/debug.h struct dentry *fd; \ fd 441 include/linux/wimax/debug.h fd = debugfs_create_u8( \ fd 444 include/linux/wimax/debug.h rc = PTR_ERR(fd); \ fd 445 include/linux/wimax/debug.h if (IS_ERR(fd) && rc != -ENODEV) \ fd 526 include/media/v4l2-subdev.h struct v4l2_mbus_frame_desc *fd); fd 528 include/media/v4l2-subdev.h struct v4l2_mbus_frame_desc *fd); fd 36 include/uapi/asm-generic/poll.h int fd; fd 671 include/uapi/drm/drm.h __s32 fd; fd 30 include/uapi/linux/btrfs.h __s64 fd; fd 69 include/uapi/linux/btrfs.h __s64 fd; fd 331 include/uapi/linux/btrfs.h __s64 fd; /* in - destination file */ fd 616 include/uapi/linux/coda.h int fd; fd 738 include/uapi/linux/coda.h int fd; /* Opened device */ fd 90 include/uapi/linux/fanotify.h __s32 fd; fd 95 include/uapi/linux/fanotify.h __s32 fd; fd 27 include/uapi/linux/if_pppol2tp.h int fd; /* FD of UDP socket to use */ fd 41 include/uapi/linux/if_pppol2tp.h int fd; /* FD of UDP socket to use */ fd 55 include/uapi/linux/if_pppol2tp.h int fd; /* FD of UDP or IP socket to use */ fd 66 include/uapi/linux/if_pppol2tp.h int fd; /* FD of UDP or IP socket to use */ fd 549 include/uapi/linux/kvm.h __s32 fd; fd 849 include/uapi/linux/kvm.h __u32 fd; fd 935 include/uapi/linux/kvm.h __u32 fd; /* out: device handle */ fd 28 include/uapi/linux/nfs_mount.h int fd; /* 1 */ fd 26 include/uapi/linux/vhost.h int fd; /* Pass -1 to unbind from file. */ fd 646 include/uapi/linux/videodev2.h __s32 fd; fd 698 include/uapi/linux/videodev2.h __s32 fd; fd 760 include/uapi/linux/videodev2.h __s32 fd; fd 250 include/uapi/rdma/ib_user_verbs.h __u32 fd; fd 320 include/uapi/rdma/ib_user_verbs.h __u32 fd; fd 296 include/uapi/rdma/rdma_user_cm.h __u32 fd; fd 545 scripts/asn1_compiler.c int fd; fd 557 scripts/asn1_compiler.c fd = open(filename, O_RDONLY); fd 558 scripts/asn1_compiler.c if (fd < 0) { fd 563 scripts/asn1_compiler.c if (fstat(fd, &st) < 0) { fd 573 scripts/asn1_compiler.c if ((readlen = read(fd, buffer, st.st_size)) < 0) { fd 578 scripts/asn1_compiler.c if (close(fd) < 0) { fd 284 scripts/basic/fixdep.c int fd; fd 287 scripts/basic/fixdep.c fd = open(filename, O_RDONLY); fd 288 scripts/basic/fixdep.c if (fd < 0) { fd 293 scripts/basic/fixdep.c fstat(fd, &st); fd 295 scripts/basic/fixdep.c close(fd); fd 298 scripts/basic/fixdep.c map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); fd 301 scripts/basic/fixdep.c close(fd); fd 309 scripts/basic/fixdep.c close(fd); fd 402 scripts/basic/fixdep.c int fd; fd 405 scripts/basic/fixdep.c fd = open(depfile, O_RDONLY); fd 406 scripts/basic/fixdep.c if (fd < 0) { fd 411 scripts/basic/fixdep.c if (fstat(fd, &st) < 0) { fd 418 scripts/basic/fixdep.c close(fd); fd 421 scripts/basic/fixdep.c map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); fd 424 scripts/basic/fixdep.c close(fd); fd 432 scripts/basic/fixdep.c close(fd); fd 203 scripts/dtc/util.c int fd = 0; /* assume stdin */ fd 210 scripts/dtc/util.c fd = open(filename, O_RDONLY); fd 211 scripts/dtc/util.c if (fd < 0) fd 228 scripts/dtc/util.c ret = read(fd, &buf[offset], bufsize - offset); fd 237 scripts/dtc/util.c close(fd); fd 274 scripts/dtc/util.c int fd = 1; /* assume stdout */ fd 281 scripts/dtc/util.c fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0666); fd 282 scripts/dtc/util.c if (fd < 0) fd 290 scripts/dtc/util.c ret = write(fd, ptr + offset, totalsize - offset); fd 298 scripts/dtc/util.c if (fd != 1) fd 299 scripts/dtc/util.c close(fd); fd 842 scripts/kconfig/confdata.c int res, i, fd; fd 912 scripts/kconfig/confdata.c fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644); fd 913 scripts/kconfig/confdata.c if (fd == -1) { fd 932 scripts/kconfig/confdata.c fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644); fd 933 scripts/kconfig/confdata.c if (fd == -1) { fd 938 scripts/kconfig/confdata.c close(fd); fd 348 scripts/mod/modpost.c int fd; fd 350 scripts/mod/modpost.c fd = open(filename, O_RDONLY); fd 351 scripts/mod/modpost.c if (fd < 0) fd 353 scripts/mod/modpost.c if (fstat(fd, &st)) fd 357 scripts/mod/modpost.c map = mmap(NULL, *size, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0); fd 360 scripts/mod/modpost.c close(fd); fd 458 scripts/mod/sumversion.c int fd; fd 460 scripts/mod/sumversion.c fd = open(filename, O_RDWR); fd 461 scripts/mod/sumversion.c if (fd < 0) { fd 467 scripts/mod/sumversion.c if (lseek(fd, offset, SEEK_SET) == (off_t)-1) { fd 473 scripts/mod/sumversion.c if (write(fd, sum, strlen(sum)+1) != strlen(sum)+1) { fd 479 scripts/mod/sumversion.c close(fd); fd 92 scripts/recordmcount.c ulseek(int const fd, off_t const offset, int const whence) fd 94 scripts/recordmcount.c off_t const w = lseek(fd, offset, whence); fd 103 scripts/recordmcount.c uread(int const fd, void *const buf, size_t const count) fd 105 scripts/recordmcount.c size_t const n = read(fd, buf, count); fd 114 scripts/recordmcount.c uwrite(int const fd, void const *const buf, size_t const count) fd 116 scripts/recordmcount.c size_t const n = write(fd, buf, count);