MCPcopy Create free account
hub / github.com/F-Stack/f-stack / fill_kinfo_proc

Function fill_kinfo_proc

freebsd/kern/kern_proc.c:1325–1336  ·  view source on GitHub ↗

* Fill in a kinfo_proc structure for the specified process. * Must be called with the target process locked. */

Source from the content-addressed store, hash-verified

1323 * Must be called with the target process locked.
1324 */
1325void
1326fill_kinfo_proc(struct proc *p, struct kinfo_proc *kp)
1327{
1328 MPASS(FIRST_THREAD_IN_PROC(p) != NULL);
1329
1330 bzero(kp, sizeof(*kp));
1331
1332 fill_kinfo_proc_pgrp(p,kp);
1333 fill_kinfo_proc_only(p, kp);
1334 fill_kinfo_thread(FIRST_THREAD_IN_PROC(p), kp, 0);
1335 fill_kinfo_aggregate(p, kp);
1336}
1337
1338struct pstats *
1339pstats_alloc(void)

Callers 1

kern_proc_outFunction · 0.85

Calls 5

bzeroFunction · 0.85
fill_kinfo_proc_pgrpFunction · 0.85
fill_kinfo_proc_onlyFunction · 0.85
fill_kinfo_threadFunction · 0.85
fill_kinfo_aggregateFunction · 0.85

Tested by

no test coverage detected