Deleted Added
full compact
libprocstat.3 (249681) libprocstat.3 (249684)
1.\" Copyright (c) 2011 Sergey Kandaurov <pluknet@FreeBSD.org>
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 8 unchanged lines hidden (view full) ---

17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
1.\" Copyright (c) 2011 Sergey Kandaurov <pluknet@FreeBSD.org>
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 8 unchanged lines hidden (view full) ---

17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.\" $FreeBSD: head/lib/libprocstat/libprocstat.3 249681 2013-04-20 08:10:47Z trociny $
25.\" $FreeBSD: head/lib/libprocstat/libprocstat.3 249684 2013-04-20 08:17:20Z trociny $
26.\"
27.Dd April 1, 2012
28.Dt LIBPROCSTAT 3
29.Os
30.Sh NAME
31.Nm procstat_open_core ,
32.Nm procstat_open_kvm ,
33.Nm procstat_open_sysctl ,
34.Nm procstat_close ,
35.Nm procstat_getargv ,
36.Nm procstat_getauxv ,
37.Nm procstat_getenvv ,
38.Nm procstat_getfiles ,
39.Nm procstat_getgroups ,
26.\"
27.Dd April 1, 2012
28.Dt LIBPROCSTAT 3
29.Os
30.Sh NAME
31.Nm procstat_open_core ,
32.Nm procstat_open_kvm ,
33.Nm procstat_open_sysctl ,
34.Nm procstat_close ,
35.Nm procstat_getargv ,
36.Nm procstat_getauxv ,
37.Nm procstat_getenvv ,
38.Nm procstat_getfiles ,
39.Nm procstat_getgroups ,
40.Nm procstat_getkstack ,
40.Nm procstat_getosrel ,
41.Nm procstat_getpathname ,
42.Nm procstat_getprocs ,
43.Nm procstat_getumask ,
44.Nm procstat_getvmmap ,
45.Nm procstat_freeargv ,
46.Nm procstat_freeauxv ,
47.Nm procstat_freeenvv ,
48.Nm procstat_freefiles ,
49.Nm procstat_freegroups ,
41.Nm procstat_getosrel ,
42.Nm procstat_getpathname ,
43.Nm procstat_getprocs ,
44.Nm procstat_getumask ,
45.Nm procstat_getvmmap ,
46.Nm procstat_freeargv ,
47.Nm procstat_freeauxv ,
48.Nm procstat_freeenvv ,
49.Nm procstat_freefiles ,
50.Nm procstat_freegroups ,
51.Nm procstat_freekstack ,
50.Nm procstat_freeprocs ,
51.Nm procstat_freevmmap ,
52.Nm procstat_get_pipe_info ,
53.Nm procstat_get_pts_info ,
54.Nm procstat_get_shm_info ,
55.Nm procstat_get_socket_info ,
56.Nm procstat_get_vnode_info
57.Nd library interface for file and process information retrieval

--- 25 unchanged lines hidden (view full) ---

83.Fa "struct filestat_list *head"
84.Fc
85.Ft void
86.Fo procstat_freegroups
87.Fa "struct procstat *procstat"
88.Fa "gid_t *groups"
89.Fc
90.Ft void
52.Nm procstat_freeprocs ,
53.Nm procstat_freevmmap ,
54.Nm procstat_get_pipe_info ,
55.Nm procstat_get_pts_info ,
56.Nm procstat_get_shm_info ,
57.Nm procstat_get_socket_info ,
58.Nm procstat_get_vnode_info
59.Nd library interface for file and process information retrieval

--- 25 unchanged lines hidden (view full) ---

85.Fa "struct filestat_list *head"
86.Fc
87.Ft void
88.Fo procstat_freegroups
89.Fa "struct procstat *procstat"
90.Fa "gid_t *groups"
91.Fc
92.Ft void
93.Fo procstat_freekstack
94.Fa "struct procstat *procstat"
95.Fa "struct kinfo_kstack *kkstp"
96.Fc
97.Ft void
91.Fn procstat_freeprocs "struct procstat *procstat" "struct kinfo_proc *p"
92.Ft void
93.Fo procstat_freevmmap
94.Fa "struct procstat *procstat"
95.Fa "struct kinfo_vmentry *vmmap"
96.Fc
97.Ft int
98.Fo procstat_get_pipe_info

--- 62 unchanged lines hidden (view full) ---

161.Fa "struct kinfo_proc *kp"
162.Fa "unsigned int *count"
163.Ft int
164.Fo procstat_getosrel
165.Fa "struct procstat *procstat"
166.Fa "struct kinfo_proc *kp"
167.Fa "int *osrelp"
168.Fc
98.Fn procstat_freeprocs "struct procstat *procstat" "struct kinfo_proc *p"
99.Ft void
100.Fo procstat_freevmmap
101.Fa "struct procstat *procstat"
102.Fa "struct kinfo_vmentry *vmmap"
103.Fc
104.Ft int
105.Fo procstat_get_pipe_info

--- 62 unchanged lines hidden (view full) ---

168.Fa "struct kinfo_proc *kp"
169.Fa "unsigned int *count"
170.Ft int
171.Fo procstat_getosrel
172.Fa "struct procstat *procstat"
173.Fa "struct kinfo_proc *kp"
174.Fa "int *osrelp"
175.Fc
176.Ft "struct kinfo_kstack *"
177.Fo procstat_getkstack
178.Fa "struct procstat *procstat"
179.Fa "struct kinfo_proc *kp"
180.Fa "unsigned int *count"
181.Fc
169.Ft "struct kinfo_proc *"
170.Fo procstat_getprocs
171.Fa "struct procstat *procstat"
172.Fa "int what"
173.Fa "int arg"
174.Fa "unsigned int *count"
175.Fc
176.Ft "int"

--- 196 unchanged lines hidden (view full) ---

373structure, and returns the process groups as a dynamically allocated array of
374.Vt gid_t
375elements.
376The caller is responsible to free the allocated memory with a subsequent
377.Fn procstat_freegroups
378function call.
379.Pp
380The
182.Ft "struct kinfo_proc *"
183.Fo procstat_getprocs
184.Fa "struct procstat *procstat"
185.Fa "int what"
186.Fa "int arg"
187.Fa "unsigned int *count"
188.Fc
189.Ft "int"

--- 196 unchanged lines hidden (view full) ---

386structure, and returns the process groups as a dynamically allocated array of
387.Vt gid_t
388elements.
389The caller is responsible to free the allocated memory with a subsequent
390.Fn procstat_freegroups
391function call.
392.Pp
393The
394.Fn procstat_getkstack
395function gets a pointer to the
396.Vt procstat
397structure initialized with one of the
398.Fn procstat_open_*
399functions, a pointer to
400.Vt kinfo_proc
401structure, and returns kernel stacks of the process as a dynamically allocated
402array of
403.Vt kinfo_kstack
404structures.
405The caller is responsible to free the allocated memory with a subsequent
406.Fn procstat_freekstack
407function call.
408.Pp
409The
381.Fn procstat_getosrel
382function gets a pointer to the
383.Vt procstat
384structure, a pointer to
385.Vt kinfo_proc
386structure, and returns osrel date in the 3rd reference parameter.
387.Pp
388The

--- 120 unchanged lines hidden ---
410.Fn procstat_getosrel
411function gets a pointer to the
412.Vt procstat
413structure, a pointer to
414.Vt kinfo_proc
415structure, and returns osrel date in the 3rd reference parameter.
416.Pp
417The

--- 120 unchanged lines hidden ---