Lines Matching defs:kcount
166 static long read_thread_count_locked(struct ucollection_process_thread_count *kcount,
170 struct task_struct *task = get_alive_task_by_pid(kcount->pid);
172 pr_info("pid=%d is task NULL or not alive", kcount->pid);
188 struct ucollection_process_thread_count kcount;
194 memset(&kcount, 0, sizeof(struct ucollection_process_thread_count));
195 (void)copy_from_user(&kcount, count, sizeof(struct ucollection_process_thread_count));
196 return read_thread_count_locked(&kcount, count);
201 struct ucollection_process_thread_count kcount;
207 memset(&kcount, 0, sizeof(struct ucollection_process_thread_count));
208 (void)copy_from_user(&kcount, count, sizeof(struct ucollection_process_thread_count));
209 if (current->tgid != kcount.pid) {
210 pr_err("pid=%d is not self current tgid:%d", kcount.pid, current->tgid);
213 return read_thread_count_locked(&kcount, count);