Lines Matching refs:psinfo

1315 static int fill_psinfo(struct elf_prpsinfo *psinfo, struct task_struct *p,  in fill_psinfo()  argument
1323 memset(psinfo, 0, sizeof(struct elf_prpsinfo)); in fill_psinfo()
1328 if (copy_from_user(&psinfo->pr_psargs, in fill_psinfo()
1332 if (psinfo->pr_psargs[i] == 0) in fill_psinfo()
1333 psinfo->pr_psargs[i] = ' '; in fill_psinfo()
1334 psinfo->pr_psargs[len] = 0; in fill_psinfo()
1337 psinfo->pr_ppid = task_pid_vnr(rcu_dereference(p->real_parent)); in fill_psinfo()
1339 psinfo->pr_pid = task_pid_vnr(p); in fill_psinfo()
1340 psinfo->pr_pgrp = task_pgrp_vnr(p); in fill_psinfo()
1341 psinfo->pr_sid = task_session_vnr(p); in fill_psinfo()
1345 psinfo->pr_state = i; in fill_psinfo()
1346 psinfo->pr_sname = (i > 5) ? '.' : "RSDTZW"[i]; in fill_psinfo()
1347 psinfo->pr_zomb = psinfo->pr_sname == 'Z'; in fill_psinfo()
1348 psinfo->pr_nice = task_nice(p); in fill_psinfo()
1349 psinfo->pr_flag = p->flags; in fill_psinfo()
1352 SET_UID(psinfo->pr_uid, from_kuid_munged(cred->user_ns, cred->uid)); in fill_psinfo()
1353 SET_GID(psinfo->pr_gid, from_kgid_munged(cred->user_ns, cred->gid)); in fill_psinfo()
1355 get_task_comm(psinfo->pr_fname, p); in fill_psinfo()
1466 struct elf_prpsinfo *psinfo = NULL; /* NT_PRPSINFO */ in elf_fdpic_core_dump() local
1481 psinfo = kmalloc(sizeof(*psinfo), GFP_KERNEL); in elf_fdpic_core_dump()
1482 if (!psinfo) in elf_fdpic_core_dump()
1523 fill_psinfo(psinfo, current->group_leader, current->mm); in elf_fdpic_core_dump()
1524 fill_note(&psinfo_note, "CORE", NT_PRPSINFO, sizeof(*psinfo), psinfo); in elf_fdpic_core_dump()
1645 kfree(psinfo); in elf_fdpic_core_dump()