Home
last modified time | relevance | path

Searched refs:npids (Results 1 – 2 of 2) sorted by relevance

/xnu-10002.1.13/bsd/kern/ !
H A Dsys_coalition.c569 int npids = 0; variable
612 npids = coalition_get_pid_list(coal, COALITION_ROLEMASK_ALLROLES, sort_order,
614 if (npids > (int)(sizeof(pidlist) / sizeof(pidlist[0]))) {
616 coalition_id(coal), pid, npids);
617 npids = sizeof(pidlist) / sizeof(pidlist[0]);
623 if (npids < 0) {
625 return -npids;
628 if (npids == 0) {
632 return SYSCTL_OUT(req, pidlist, sizeof(pidlist[0]) * npids);
/xnu-10002.1.13/tests/ !
H A Dproc_info.c2054 int npids; variable
2076 npids = proc_listpids(PROC_KDBG_ONLY, 0, pids, sizeof(pids));
2077 T_EXPECT_EQ(npids, 0, "no processes should be filtered initially");
2086 npids = proc_listpids(PROC_KDBG_ONLY, 0, pids, sizeof(pids));
2087 npids /= 4;
2088 T_EXPECT_EQ(npids, 1, "a process should be filtered");