aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/syscalls.master
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2011-03-30 17:48:15 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2011-03-30 17:48:15 +0000
commitec125fbbc5b9f92be4cffec770e6312d38aa98b7 (patch)
tree78b8ca334c1e0966031441c8f920e6d36aac7eae /sys/kern/syscalls.master
parent9e4dbe2e99fc186bfe12958e1124f59bae4d05e2 (diff)
downloadsrc-ec125fbbc5b9f92be4cffec770e6312d38aa98b7.tar.gz
src-ec125fbbc5b9f92be4cffec770e6312d38aa98b7.zip
Add rctl. It's used by racct to take user-configurable actions based
on the set of rules it maintains and the current resource usage. It also privides userland API to manage that ruleset. Sponsored by: The FreeBSD Foundation Reviewed by: kib (earlier version)
Notes
Notes: svn path=/head/; revision=220163
Diffstat (limited to 'sys/kern/syscalls.master')
-rw-r--r--sys/kern/syscalls.master15
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master
index b204254f9474..e20973184a68 100644
--- a/sys/kern/syscalls.master
+++ b/sys/kern/syscalls.master
@@ -929,5 +929,20 @@
523 AUE_NULL STD { int getloginclass(char *namebuf, \
size_t namelen); }
524 AUE_NULL STD { int setloginclass(const char *namebuf); }
+525 AUE_NULL STD { int rctl_get_racct(const void *inbufp, \
+ size_t inbuflen, void *outbufp, \
+ size_t outbuflen); }
+526 AUE_NULL STD { int rctl_get_rules(const void *inbufp, \
+ size_t inbuflen, void *outbufp, \
+ size_t outbuflen); }
+527 AUE_NULL STD { int rctl_get_limits(const void *inbufp, \
+ size_t inbuflen, void *outbufp, \
+ size_t outbuflen); }
+528 AUE_NULL STD { int rctl_add_rule(const void *inbufp, \
+ size_t inbuflen, void *outbufp, \
+ size_t outbuflen); }
+529 AUE_NULL STD { int rctl_remove_rule(const void *inbufp, \
+ size_t inbuflen, void *outbufp, \
+ size_t outbuflen); }
; Please copy any additions and changes to the following compatability tables:
; sys/compat/freebsd32/syscalls.master