summaryrefslogtreecommitdiffstats
path: root/lib/libprocstat/libprocstat.3
diff options
context:
space:
mode:
authortrociny <trociny@FreeBSD.org>2013-04-20 07:59:44 +0000
committertrociny <trociny@FreeBSD.org>2013-04-20 07:59:44 +0000
commit398b48380ff7b2ea5c997d18f7395b2aa9e36b06 (patch)
tree1f8660d19df0d3b65eecb0ba0022ab0d31cea2b5 /lib/libprocstat/libprocstat.3
parentaa81fb93633764124c74da7a38b7d2b9bdfda651 (diff)
downloadFreeBSD-src-398b48380ff7b2ea5c997d18f7395b2aa9e36b06.zip
FreeBSD-src-398b48380ff7b2ea5c997d18f7395b2aa9e36b06.tar.gz
Add procstat_getrlimit function to retrieve a process resource limits info.
MFC after: 1 month
Diffstat (limited to 'lib/libprocstat/libprocstat.3')
-rw-r--r--lib/libprocstat/libprocstat.317
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/libprocstat/libprocstat.3 b/lib/libprocstat/libprocstat.3
index 06a66a0..bc78d68 100644
--- a/lib/libprocstat/libprocstat.3
+++ b/lib/libprocstat/libprocstat.3
@@ -128,6 +128,13 @@
.Fa "unsigned int *count"
.Fc
.Ft "int"
+.Fo procstat_getrlimit
+.Fa "struct procstat *procstat"
+.Fa "struct kinfo_proc *kp"
+.Fa "int which"
+.Fa "struct rlimit* rlimit"
+.Fc
+.Ft "int"
.Fo procstat_getumask
.Fa "struct procstat *procstat"
.Fa "struct kinfo_proc *kp"
@@ -261,6 +268,16 @@ The caller is responsible to free the allocated memory with a subsequent
function call.
.Pp
The
+.Fn procstat_getrlimit
+function gets a pointer to the
+.Vt procstat
+structure, a pointer to
+.Vt kinfo_proc
+structure, resource index
+.Fa which ,
+and returns the actual resource limit in the 4th reference parameter.
+.Pp
+The
.Fn procstat_getumask
function gets a pointer to the
.Vt procstat
OpenPOWER on IntegriCloud