Lines Matching defs:fd
49 linux_fget(unsigned int fd)
54 if (fget_unlocked(curthread, fd, &cap_no_rights, &file) != 0)
85 put_unused_fd(unsigned int fd)
89 if (fget_unlocked(curthread, fd, &cap_no_rights, &file) != 0) {
93 * NOTE: We should only get here when the "fd" has not been
97 fdclose(curthread, file, fd);
104 fd_install(unsigned int fd, struct linux_file *filp)
108 if (fget_unlocked(curthread, fd, &cap_no_rights, &file) != 0) {
128 int fd;
130 error = falloc(curthread, &file, &fd, 0);
135 return fd;
143 int fd;
145 error = falloc(curthread, &file, &fd, flags);
150 return fd;
167 struct fd {
171 static inline void fdput(struct fd fd)
173 fput(fd.linux_file);
176 static inline struct fd fdget(unsigned int fd)
178 struct linux_file *f = linux_fget(fd);
179 return (struct fd){f};