diff options
author | trociny <trociny@FreeBSD.org> | 2013-04-20 08:03:56 +0000 |
---|---|---|
committer | trociny <trociny@FreeBSD.org> | 2013-04-20 08:03:56 +0000 |
commit | 72dafce20f72d7aa3e2fab75a4ef453d39b8dbdd (patch) | |
tree | b4ce59716cb01690836df8b4dfc7522f3c47e658 /lib/libprocstat/libprocstat.3 | |
parent | 93aa05a11832f64ae31ddaef20437c6224698efc (diff) | |
download | FreeBSD-src-72dafce20f72d7aa3e2fab75a4ef453d39b8dbdd.zip FreeBSD-src-72dafce20f72d7aa3e2fab75a4ef453d39b8dbdd.tar.gz |
Add procstat_getosrel function to retrieve a process osrel info.
MFC after: 1 month
Diffstat (limited to 'lib/libprocstat/libprocstat.3')
-rw-r--r-- | lib/libprocstat/libprocstat.3 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/libprocstat/libprocstat.3 b/lib/libprocstat/libprocstat.3 index fd843cb..9fecf87 100644 --- a/lib/libprocstat/libprocstat.3 +++ b/lib/libprocstat/libprocstat.3 @@ -34,6 +34,7 @@ .Nm procstat_close , .Nm procstat_getfiles , .Nm procstat_getgroups , +.Nm procstat_getosrel , .Nm procstat_getpathname , .Nm procstat_getprocs , .Nm procstat_getumask , @@ -120,6 +121,11 @@ .Fa "struct procstat *procstat" .Fa "struct kinfo_proc *kp" .Fa "unsigned int *count" +.Ft int +.Fo procstat_getosrel +.Fa "struct procstat *procstat" +.Fa "struct kinfo_proc *kp" +.Fa "int *osrelp" .Fc .Ft "struct kinfo_proc *" .Fo procstat_getprocs @@ -276,6 +282,14 @@ The caller is responsible to free the allocated memory with a subsequent function call. .Pp The +.Fn procstat_getosrel +function gets a pointer to the +.Vt procstat +structure, a pointer to +.Vt kinfo_proc +structure, and returns osrel date in the 3rd reference parameter. +.Pp +The .Fn procstat_getpathname function gets a pointer to the .Vt procstat |