diff options
author | sl108498 <none@none> | 2006-09-19 15:49:28 -0700 |
---|---|---|
committer | sl108498 <none@none> | 2006-09-19 15:49:28 -0700 |
commit | c6939658adb0a356a77bc28f7df252ceb4a8f6cc (patch) | |
tree | 2e24cb01bd59e15cda6ad68fa5d778b4cf571fa7 /usr/src/uts/common/sys/shm_impl.h | |
parent | 69889278ff50c08a6682a39ce6b5d97c5f0c2387 (diff) | |
download | illumos-joyent-c6939658adb0a356a77bc28f7df252ceb4a8f6cc.tar.gz |
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
Diffstat (limited to 'usr/src/uts/common/sys/shm_impl.h')
-rw-r--r-- | usr/src/uts/common/sys/shm_impl.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/usr/src/uts/common/sys/shm_impl.h b/usr/src/uts/common/sys/shm_impl.h index f43fad4c87..4d8cdcede5 100644 --- a/usr/src/uts/common/sys/shm_impl.h +++ b/usr/src/uts/common/sys/shm_impl.h @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -20,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -59,6 +58,10 @@ typedef struct kshmid { size_t shm_segsz; /* size of segment in bytes */ struct anon_map *shm_amp; /* segment anon_map pointer */ ushort_t shm_lkcnt; /* number of times it is being locked */ + pgcnt_t shm_lkpages; /* number of pages locked by shmctl */ + kmutex_t shm_mlock; /* held when locking physical pages */ + /* Therefore, protects p_lckcnt for */ + /* pages that back shm */ pid_t shm_lpid; /* pid of last shmop */ pid_t shm_cpid; /* pid of creator */ ulong_t shm_ismattch; /* number of ISM attaches */ |