From c6939658adb0a356a77bc28f7df252ceb4a8f6cc Mon Sep 17 00:00:00 2001 From: sl108498 Date: Tue, 19 Sep 2006 15:49:28 -0700 Subject: PSARC/2004/580 zone/project.max-locked-memory Resource Controls PSARC/2006/463 Amendment_to_zone_project.max-locked-memory_Resource_Controls 5053609 RFE: need zone.max-locked-memory rctl 4691104 Need mlock capability without requiring superuser privileges --- usr/src/uts/common/sys/rctl.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'usr/src/uts/common/sys/rctl.h') diff --git a/usr/src/uts/common/sys/rctl.h b/usr/src/uts/common/sys/rctl.h index 02bcef6f36..eb56fff9e5 100644 --- a/usr/src/uts/common/sys/rctl.h +++ b/usr/src/uts/common/sys/rctl.h @@ -319,6 +319,12 @@ int rctl_rlimit_set(rctl_hndl_t, struct proc *, struct rlimit64 *, rctl_alloc_gp_t *, int, int, const struct cred *); int rctl_rlimit_get(rctl_hndl_t, struct proc *, struct rlimit64 *); +/* specific rctl utility functions */ +int rctl_incr_locked_mem(struct proc *, struct kproject *, rctl_qty_t, + int); +void rctl_decr_locked_mem(struct proc *, struct kproject *, rctl_qty_t, + int); + #endif /* _KERNEL */ #ifdef __cplusplus -- cgit v1.2.3