Lines Matching refs:fd
49 linux_fget(unsigned int fd) in linux_fget() argument
54 if (fget_unlocked(curthread, fd, &cap_no_rights, &file) != 0) in linux_fget()
85 put_unused_fd(unsigned int fd) in put_unused_fd() argument
89 if (fget_unlocked(curthread, fd, &cap_no_rights, &file) != 0) { in put_unused_fd()
97 fdclose(curthread, file, fd); in put_unused_fd()
104 fd_install(unsigned int fd, struct linux_file *filp) in fd_install() argument
108 if (fget_unlocked(curthread, fd, &cap_no_rights, &file) != 0) { in fd_install()
128 int fd; in get_unused_fd() local
130 error = falloc(curthread, &file, &fd, 0); in get_unused_fd()
135 return fd; in get_unused_fd()
143 int fd; in get_unused_fd_flags() local
145 error = falloc(curthread, &file, &fd, flags); in get_unused_fd_flags()
150 return fd; in get_unused_fd_flags()
167 struct fd { struct
171 static inline void fdput(struct fd fd) in fdput() argument
173 fput(fd.linux_file); in fdput()
176 static inline struct fd fdget(unsigned int fd) in fdget() argument
178 struct linux_file *f = linux_fget(fd); in fdget()
179 return (struct fd){f}; in fdget()