Lines Matching defs:task
939 struct file *fget_task(struct task_struct *task, unsigned int fd)
943 task_lock(task);
944 if (task->files)
945 file = __fget_files(task->files, fd, 0);
946 task_unlock(task);
951 struct file *task_lookup_fd_rcu(struct task_struct *task, unsigned int fd)
957 task_lock(task);
958 files = task->files;
961 task_unlock(task);
966 struct file *task_lookup_next_fd_rcu(struct task_struct *task, unsigned int *ret_fd)
973 task_lock(task);
974 files = task->files;
982 task_unlock(task);
998 * 3) You must not clone the current task in between the calls to fget_light