Home
last modified time | relevance | path

Searched refs:pidlist (Results 1 – 14 of 14) sorted by relevance

/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_destroy/
H A Dzfs_destroy_001_pos.ksh101 pidlist="$pidlist $(mkbusy \
104 "(pidlist: $pidlist)"
105 [[ -z $pidlist ]] && \
112 pidlist="$pidlist $(mkbusy \
115 "(pidlist: $pidlist)"
116 [[ -z $pidlist ]] && \
123 pidlist="$pidlist $(mkbusy \
126 "(pidlist: $pidlist)"
127 [[ -z $pidlist ]] && \
136 pidlist="$pidlist $(mkbusy $mpt_dir)"
[all …]
H A Dzfs_destroy_005_neg.ksh104 pidlist=$(mkbusy $mntpt/$TESTFILE0)
105 log_note "mkbusy $mntpt/$TESTFILE0 (pidlist: $pidlist)"
106 [[ -z $pidlist ]] && log_fail "Failure from mkbusy"
141 log_must kill $pidlist
143 pidlist=""
153 pidlist=$(mkbusy $TESTDIR1/$TESTFILE0)
154 log_note "mkbusy $TESTDIR1/$TESTFILE0 (pidlist: $pidlist)"
155 [[ -z $pidlist ]] && log_fail "Failure from mkbusy"
184 log_must kill $pidlist
186 pidlist=""
[all …]
/illumos-gate/usr/src/cmd/coreadm/
H A Dcoreadm.c144 char **pidlist; in main() local
215 pidlist = argv + optind; in main()
251 pidlist = &curpid_ptr; in main()
261 return (do_processes(npids, pidlist)); in main()
318 do_processes(int npids, char **pidlist) in do_processes() argument
329 pid = strtol(*pidlist, &next, 10); in do_processes()
330 if (*next != '\0' || !isdigit(**pidlist)) { in do_processes()
333 *pidlist); in do_processes()
338 perror(*pidlist); in do_processes()
344 *pidlist, process_path, content_str); in do_processes()
[all …]
/illumos-gate/usr/src/cmd/priocntl/
H A Dsdcpriocntl.c110 pid_t *pidlist; in main() local
119 if ((pidlist = read_pidlist(&numread, stdin)) == NULL) { in main()
127 (void) printf("%7ld\n", pidlist[i]); in main()
130 free_pidlist(pidlist); in main()
H A Dfsspriocntl.c217 pid_t *pidlist; in print_fssprocs() local
228 if ((pidlist = read_pidlist(&numread, stdin)) == NULL) in print_fssprocs()
238 (void) printf("%7ld", pidlist[i]); in print_fssprocs()
239 if (priocntl(P_PID, pidlist[i], PC_GETXPARMS, "FSS", in print_fssprocs()
247 if (priocntl(P_PID, pidlist[i], PC_GETXPARMS, NULL, in print_fssprocs()
265 free_pidlist(pidlist); in print_fssprocs()
H A Dtspriocntl.c233 pid_t *pidlist; in print_tsprocs() local
244 if ((pidlist = read_pidlist(&numread, stdin)) == NULL) in print_tsprocs()
254 (void) printf("%7ld", pidlist[i]); in print_tsprocs()
255 if (priocntl(P_PID, pidlist[i], PC_GETXPARMS, "TS", TS_KY_UPRI, in print_tsprocs()
262 if (priocntl(P_PID, pidlist[i], PC_GETXPARMS, NULL, in print_tsprocs()
279 free_pidlist(pidlist); in print_tsprocs()
H A Dsubr.c464 pid_t *pidlist = NULL; in read_pidlist() local
469 if ((pidlist = (pid_t *)realloc(pidlist, in read_pidlist()
473 nitems = fread(pidlist + *npidsp, sizeof (pid_t), NPIDS, filep); in read_pidlist()
480 return (pidlist); in read_pidlist()
485 free_pidlist(pid_t *pidlist) in free_pidlist() argument
487 free(pidlist); in free_pidlist()
H A Diapriocntl.c251 pid_t *pidlist; in print_iaprocs() local
263 if ((pidlist = read_pidlist(&numread, stdin)) == NULL) in print_iaprocs()
273 (void) printf("%7ld", pidlist[i]); in print_iaprocs()
274 if (priocntl(P_PID, pidlist[i], PC_GETXPARMS, "IA", in print_iaprocs()
282 if (priocntl(P_PID, pidlist[i], PC_GETXPARMS, NULL, in print_iaprocs()
299 free_pidlist(pidlist); in print_iaprocs()
H A Drtpriocntl.c273 pid_t *pidlist; in print_rtprocs() local
286 if ((pidlist = read_pidlist(&numread, stdin)) == NULL) in print_rtprocs()
296 (void) printf("%7ld", pidlist[i]); in print_rtprocs()
297 if (priocntl(P_PID, pidlist[i], PC_GETXPARMS, "RT", in print_rtprocs()
312 if (priocntl(P_PID, pidlist[i], PC_GETXPARMS, NULL, in print_rtprocs()
330 free_pidlist(pidlist); in print_rtprocs()
H A Dfxpriocntl.c269 pid_t *pidlist; in print_fxprocs() local
283 if ((pidlist = read_pidlist(&numread, stdin)) == NULL) in print_fxprocs()
294 (void) printf("%7ld", pidlist[i]); in print_fxprocs()
295 if (priocntl(P_PID, pidlist[i], PC_GETXPARMS, "FX", in print_fxprocs()
311 if (priocntl(P_PID, pidlist[i], PC_GETXPARMS, NULL, in print_fxprocs()
329 free_pidlist(pidlist); in print_fxprocs()
/illumos-gate/usr/src/cmd/sulogin/
H A Dsulogin.c108 static pid_t pidlist[10]; variable
303 pidlist[nchild++] = originalpid; in main()
342 pidlist[nchild++] = pid; in main()
403 pidlist[nchild++] = pid; in doit()
756 if (pidlist[i] != si->__data.__proc.__pid) in parenthandler()
757 (void) sigsend(P_PID, pidlist[i], SIGTERM); in parenthandler()
782 if (pidlist[i] != getppid()) in childcleanup()
783 (void) sigsend(P_PID, pidlist[i], SIGHUP); in childcleanup()
/illumos-gate/usr/src/cmd/latencytop/
H A Ddisplay.c343 print_taskbar_process(pid_t *pidlist, int pidlist_len, int pidlist_index) in print_taskbar_process() argument
369 const char *pname = lt_stat_proc_get_name(pidlist[i]); in print_taskbar_process()
375 "<%d>", pidlist[i]); in print_taskbar_process()
412 print_taskbar_thread(pid_t *pidlist, id_t *tidlist, int list_len, in print_taskbar_thread() argument
443 if (pidlist[i] != last_pid) { in print_taskbar_thread()
444 pname = lt_stat_proc_get_name(pidlist[i]); in print_taskbar_thread()
445 last_pid = pidlist[i]; in print_taskbar_thread()
459 "<%d>", pidlist[i]); in print_taskbar_thread()
/illumos-gate/usr/src/uts/common/syscall/
H A Dutssys.c317 pid_t npids, pidx, *pidlist; in dofusers() local
337 pidlist = kmem_alloc(v_proc * sizeof (pid_t), KM_SLEEP); in dofusers()
341 pidlist[npids++] = prp->p_pid; in dofusers()
353 pid_t pid = pidlist[pidx]; in dofusers()
618 kmem_free(pidlist, v_proc * sizeof (pid_t)); in dofusers()
/illumos-gate/usr/src/cmd/init/
H A Dinit.c408 static struct pidlist { struct
412 struct pidlist *pl_next; /* Next in list */ argument
2329 struct pidlist *pp; in childeath_single()
3583 struct pidlist *plp; in sigpoll()
3584 struct pidlist *tp, *savetp; in sigpoll()
3609 plp = (struct pidlist *)calloc(DELTA, in sigpoll()
3610 sizeof (struct pidlist)); in sigpoll()
3716 struct pidlist *savep, *p; in cleanaux()