Lines Matching defs:task
444 struct files_struct *get_files_struct(struct task_struct *task)
448 task_lock(task);
449 files = task->files;
452 task_unlock(task);
954 struct file *fget_task(struct task_struct *task, unsigned int fd)
958 task_lock(task);
959 if (task->files)
960 file = __fget_files(task->files, fd, 0, 1);
961 task_unlock(task);
976 * 3) You must not clone the current task in between the calls to fget_light