Searched refs:npids (Results 1 – 2 of 2) sorted by relevance
| /xnu-8792.41.9/bsd/kern/ |
| H A D | sys_coalition.c | 547 int npids = 0; variable 590 npids = coalition_get_pid_list(coal, COALITION_ROLEMASK_ALLROLES, sort_order, 592 if (npids > (int)(sizeof(pidlist) / sizeof(pidlist[0]))) { 594 coalition_id(coal), pid, npids); 595 npids = sizeof(pidlist) / sizeof(pidlist[0]); 601 if (npids < 0) { 603 return -npids; 606 if (npids == 0) { 610 return SYSCTL_OUT(req, pidlist, sizeof(pidlist[0]) * npids);
|
| /xnu-8792.41.9/tests/ |
| H A D | proc_info.c | 2054 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");
|