Lines Matching defs:psinfo
1318 static int fill_psinfo(struct elf_prpsinfo *psinfo, struct task_struct *p,
1326 memset(psinfo, 0, sizeof(struct elf_prpsinfo));
1331 if (copy_from_user(&psinfo->pr_psargs,
1335 if (psinfo->pr_psargs[i] == 0)
1336 psinfo->pr_psargs[i] = ' ';
1337 psinfo->pr_psargs[len] = 0;
1340 psinfo->pr_ppid = task_pid_vnr(rcu_dereference(p->real_parent));
1342 psinfo->pr_pid = task_pid_vnr(p);
1343 psinfo->pr_pgrp = task_pgrp_vnr(p);
1344 psinfo->pr_sid = task_session_vnr(p);
1348 psinfo->pr_state = i;
1349 psinfo->pr_sname = (i > 5) ? '.' : "RSDTZW"[i];
1350 psinfo->pr_zomb = psinfo->pr_sname == 'Z';
1351 psinfo->pr_nice = task_nice(p);
1352 psinfo->pr_flag = p->flags;
1355 SET_UID(psinfo->pr_uid, from_kuid_munged(cred->user_ns, cred->uid));
1356 SET_GID(psinfo->pr_gid, from_kgid_munged(cred->user_ns, cred->gid));
1358 strncpy(psinfo->pr_fname, p->comm, sizeof(psinfo->pr_fname));
1469 struct elf_prpsinfo *psinfo = NULL; /* NT_PRPSINFO */
1484 psinfo = kmalloc(sizeof(*psinfo), GFP_KERNEL);
1485 if (!psinfo)
1526 fill_psinfo(psinfo, current->group_leader, current->mm);
1527 fill_note(&psinfo_note, "CORE", NT_PRPSINFO, sizeof(*psinfo), psinfo);
1648 kfree(psinfo);