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/proc.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'usr/src/uts/common/sys/proc.h') diff --git a/usr/src/uts/common/sys/proc.h b/usr/src/uts/common/sys/proc.h index 13a3605e66..4c4025e649 100644 --- a/usr/src/uts/common/sys/proc.h +++ b/usr/src/uts/common/sys/proc.h @@ -342,6 +342,8 @@ typedef struct proc { /* additional lock to protect p_sessp (but not its contents) */ kmutex_t p_splock; + rctl_qty_t p_locked_mem; /* locked memory charged to proc */ + /* protected by p_lock */ } proc_t; #define PROC_T /* headers relying on proc_t are OK */ @@ -486,8 +488,8 @@ extern struct pid pid0; /* p0's pid */ * These flags are used to synchronize with the pool subsystem to allow * re-binding of processes to new pools. */ -#define PBWAIT 0x0001 /* process should wait outside fork/exec/exit */ -#define PEXITED 0x0002 /* process exited and about to become zombie */ +#define PBWAIT 0x0001 /* process should wait outside fork/exec/exit */ +#define PEXITED 0x0002 /* process exited and about to become zombie */ /* Macro to convert proc pointer to a user block pointer */ #define PTOU(p) (&(p)->p_user) -- cgit v1.2.3