Lines Matching refs:pid
49 pid_t pid; member
129 rc = genlmsg_unicast(&init_net, skb_cur, s->pid); in send_cpu_listeners()
179 static int fill_stats_for_pid(pid_t pid, struct taskstats *stats) in fill_stats_for_pid() argument
183 tsk = find_get_task_by_vpid(pid); in fill_stats_for_pid()
274 static int add_del_listener(pid_t pid, const struct cpumask *mask, int isadd) in add_del_listener() argument
298 s->pid = pid; in add_del_listener()
304 if (s2->pid == pid && s2->valid) in add_del_listener()
322 if (s->pid == pid) { in add_del_listener()
355 static struct taskstats *mk_reply(struct sk_buff *skb, int type, u32 pid) in mk_reply() argument
368 if (nla_put(skb, type, sizeof(pid), &pid) < 0) { in mk_reply()
483 u32 pid; in cmd_attr_pid() local
493 pid = nla_get_u32(info->attrs[TASKSTATS_CMD_ATTR_PID]); in cmd_attr_pid()
494 stats = mk_reply(rep_skb, TASKSTATS_TYPE_PID, pid); in cmd_attr_pid()
498 rc = fill_stats_for_pid(pid, stats); in cmd_attr_pid()