Home
last modified time | relevance | path

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

/xnu-11215.1.10/bsd/kern/
H A Dsys_coalition.c729 int npids = 0; variable
772 npids = coalition_get_pid_list(coal, COALITION_ROLEMASK_ALLROLES, sort_order,
774 if (npids > (int)(sizeof(pidlist) / sizeof(pidlist[0]))) {
776 coalition_id(coal), pid, npids);
777 npids = sizeof(pidlist) / sizeof(pidlist[0]);
783 if (npids < 0) {
785 return -npids;
788 if (npids == 0) {
792 return SYSCTL_OUT(req, pidlist, sizeof(pidlist[0]) * npids);
/xnu-11215.1.10/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");