Lines Matching defs:psinfo
1340 static int fill_psinfo(struct elf_prpsinfo *psinfo, struct task_struct *p,
1347 memset(psinfo, 0, sizeof(struct elf_prpsinfo));
1352 if (copy_from_user(&psinfo->pr_psargs,
1356 if (psinfo->pr_psargs[i] == 0)
1357 psinfo->pr_psargs[i] = ' ';
1358 psinfo->pr_psargs[len] = 0;
1361 psinfo->pr_ppid = task_pid_vnr(rcu_dereference(p->real_parent));
1363 psinfo->pr_pid = task_pid_vnr(p);
1364 psinfo->pr_pgrp = task_pgrp_vnr(p);
1365 psinfo->pr_sid = task_session_vnr(p);
1368 psinfo->pr_state = i;
1369 psinfo->pr_sname = (i > 5) ? '.' : "RSDTZW"[i];
1370 psinfo->pr_zomb = psinfo->pr_sname == 'Z';
1371 psinfo->pr_nice = task_nice(p);
1372 psinfo->pr_flag = p->flags;
1375 SET_UID(psinfo->pr_uid, from_kuid_munged(cred->user_ns, cred->uid));
1376 SET_GID(psinfo->pr_gid, from_kgid_munged(cred->user_ns, cred->gid));
1378 strncpy(psinfo->pr_fname, p->comm, sizeof(psinfo->pr_fname));
1487 struct elf_prpsinfo *psinfo = NULL; /* NT_PRPSINFO */
1502 psinfo = kmalloc(sizeof(*psinfo), GFP_KERNEL);
1503 if (!psinfo)
1544 fill_psinfo(psinfo, current->group_leader, current->mm);
1545 fill_note(&psinfo_note, "CORE", NT_PRPSINFO, sizeof(*psinfo), psinfo);
1667 kfree(psinfo);