Lines Matching refs:fd
47 linux_fget(unsigned int fd)
51 if (fget_unlocked(curthread->td_proc->p_fd, fd, NULL, 0, &file,
72 put_unused_fd(unsigned int fd)
76 if (fget_unlocked(curthread->td_proc->p_fd, fd, NULL, 0, &file,
81 * NOTE: We should only get here when the "fd" has not been
85 fdclose(curthread->td_proc->p_fd, file, fd, curthread);
92 fd_install(unsigned int fd, struct linux_file *filp)
96 if (fget_unlocked(curthread->td_proc->p_fd, fd, NULL, 0, &file,
113 int fd;
115 error = falloc(curthread, &file, &fd, 0);
120 return fd;
128 int fd;
130 error = falloc(curthread, &file, &fd, flags);
135 return fd;
152 struct fd {
156 static inline void fdput(struct fd fd)
158 fput(fd.linux_file);
161 static inline struct fd fdget(unsigned int fd)
163 struct linux_file *f = linux_fget(fd);
164 return (struct fd){f};