summaryrefslogtreecommitdiff
path: root/kernel/compat.c
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2010-03-24 15:11:29 (GMT)
committerJiri Slaby <jirislaby@gmail.com>2010-07-16 07:48:48 (GMT)
commit5b41535aac0c07135ff6a4c5c2ae115d1c20c0bc (patch)
treef8db7ec9e07d33aa2af061b49895a0baebafd4cc /kernel/compat.c
parent6a1d5e2c85d06da35cdfd93f1a27675bfdc3ad8c (diff)
downloadlinux-5b41535aac0c07135ff6a4c5c2ae115d1c20c0bc.tar.xz
rlimits: redo do_setrlimit to more generic do_prlimit
It now allows also reading of limits. I.e. all read and writes will later use this function. It takes two parameters, new and old limits which can be both NULL. If new is non-NULL, the value in it is set to rlimits. If old is non-NULL, current rlimits are stored there. If both are non-NULL, old are stored prior to setting the new ones, atomically. (Similar to sigaction.) Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'kernel/compat.c')
0 files changed, 0 insertions, 0 deletions