Lines Matching refs:tsk
20 struct task_struct *tsk; member
26 struct task_struct *tsk = NULL; in init_dma_buf_task_info() local
33 tsk = current->group_leader; in init_dma_buf_task_info()
34 buf->exp_pid = task_pid_nr(tsk); in init_dma_buf_task_info()
35 if (tsk->flags & PF_KTHREAD) in init_dma_buf_task_info()
36 tsk = NULL; in init_dma_buf_task_info()
40 if (tsk) in init_dma_buf_task_info()
41 get_task_comm(buf->exp_task_comm, tsk); in init_dma_buf_task_info()
67 struct task_struct *tsk = NULL; in dma_buf_single_file_show() local
74 tsk = tsk_info->tsk; in dma_buf_single_file_show()
76 if (IS_ERR_OR_NULL(tsk) || IS_ERR_OR_NULL(buf)) in dma_buf_single_file_show()
84 tsk->comm, in dma_buf_single_file_show()
85 tsk->pid, in dma_buf_single_file_show()
101 struct task_struct *tsk = NULL; in dma_buf_process_info_show() local
111 for_each_process(tsk) { in dma_buf_process_info_show()
112 task_info.tsk = tsk; in dma_buf_process_info_show()
115 task_lock(tsk); in dma_buf_process_info_show()
116 iterate_fd(tsk->files, 0, dma_buf_single_file_show, in dma_buf_process_info_show()
120 tsk->comm, task_info.tsk_dmabuf_bytes); in dma_buf_process_info_show()
121 task_unlock(tsk); in dma_buf_process_info_show()