diff options
| author | Andrew Morton <akpm@digeo.com> | 2002-10-30 18:34:59 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@penguin.transmeta.com> | 2002-10-30 18:34:59 -0800 |
| commit | bba2dd58c14a371b1062e585a280059fc6e9364f (patch) | |
| tree | bbea092a5219a76cca266c408214749d0b3b640f /include/linux | |
| parent | 9f3336ab7c42d631f5ed50d73e1eea7bd9268892 (diff) | |
[PATCH] hugetlbfs backing for SYSV shared memory
From Bill Irwin
Optionally back priviled processes' shm with hugetlbfs.
One of the more common requests for and/or users of hugetlb interfaces
in general are databases using shm. This patch exports functionality
mostly equivalent to tmpfs, adds the calling sequence to ipc/shm.c, and
hashes out a small support function in fs/hugetlbfs/inode.c so that shm
segments may be hugetlbpage-backed if userspace passes a flag to
shmget().
Access to this resource requires CAP_IPC_LOCK.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/shm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/shm.h b/include/linux/shm.h index be7d433725ca..39c0e66e8c3e 100644 --- a/include/linux/shm.h +++ b/include/linux/shm.h @@ -88,6 +88,7 @@ struct shmid_kernel /* private to the kernel */ /* shm_mode upper byte flags */ #define SHM_DEST 01000 /* segment will be destroyed on last detach */ #define SHM_LOCKED 02000 /* segment will not be swapped */ +#define SHM_HUGETLB 04000 /* segment will use huge TLB pages */ asmlinkage long sys_shmget (key_t key, size_t size, int flag); asmlinkage long sys_shmat (int shmid, char *shmaddr, int shmflg, unsigned long *addr); |
