1 PLWP_ITER(3PROC) Process Control Library Functions PLWP_ITER(3PROC)
2
3 NAME
4 Plwp_iter, Plwp_iter_all - iterate over threads
5
6 SYNOPSIS
7 Process Control Library (libproc, -lproc)
8 #include <libproc.h>
9
10 int
11 Plwp_iter(struct ps_prochandle *P, proc_lwp_f *func, void *data);
12
13 int
14 Plwp_iter_all(struct ps_prochandle *P, proc_lwp_all_f *func, void *data);
15
16 DESCRIPTION
17 The Plwp_iter() and Plwp_iter_all() functions iterates over threads in
18 the given process handle P. The Plwp_iter() function iterates over all
19 active threads, where as the Plwp_iter_all() function iterates over both
20 active threads and zombie threads -- threads waiting to be reaped.
21
22 For each thread, the callback function func is called with the pointer to
23 the private data argument, data, and the thread's lwpstatus_t structure.
24 In the case of the Plwp_iter_all() function, the thread's lwpsinfo_t is
25 also included.
26
27 The return value of func controls whether or not iteration continues. If
|
1 PLWP_ITER(3PROC) Process Control Library Functions PLWP_ITER(3PROC)
2
3 NAME
4 Plwp_iter, Plwp_iter_all - iterate over threads
5
6 LIBRARY
7 Process Control Library (libproc, -lproc)
8
9 SYNOPSIS
10 #include <libproc.h>
11
12 int
13 Plwp_iter(struct ps_prochandle *P, proc_lwp_f *func, void *data);
14
15 int
16 Plwp_iter_all(struct ps_prochandle *P, proc_lwp_all_f *func, void *data);
17
18 DESCRIPTION
19 The Plwp_iter() and Plwp_iter_all() functions iterates over threads in
20 the given process handle P. The Plwp_iter() function iterates over all
21 active threads, where as the Plwp_iter_all() function iterates over both
22 active threads and zombie threads -- threads waiting to be reaped.
23
24 For each thread, the callback function func is called with the pointer to
25 the private data argument, data, and the thread's lwpstatus_t structure.
26 In the case of the Plwp_iter_all() function, the thread's lwpsinfo_t is
27 also included.
28
29 The return value of func controls whether or not iteration continues. If
|