Lines Matching defs:pids
71 pid_t *pids;
118 error = pm_kernel_pids(ker, &pids, &num_procs);
129 pids = malloc(sizeof(*pids));
130 if (pids == NULL) {
135 *pids = strtoul(argv[optind], NULL, 10);
136 if (*pids == 0) {
142 if (getprocname(*pids, cmdline, sizeof(cmdline)) < 0) {
145 printf("%s (%u):\n", cmdline, *pids);
152 error = pm_process_create(ker, pids[i], &proc);
154 fprintf(stderr, "warning: could not create process interface for %d\n", pids[i]);
162 fprintf(stderr, "warning: could not read process map for %d\n", pids[i]);
185 free(pids);