aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/nommu-mmap.txt
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2006-09-27 04:50:21 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-09-27 11:26:14 -0400
commit6fa5f80bc34da1a49b42117602b44441402cac2f (patch)
tree7cdc7bf5c0df29b218c9c40d6cddd5124587b7a5 /Documentation/nommu-mmap.txt
parent3034097a5017dd9281b1f795e80af9859627850e (diff)
[PATCH] NOMMU: Make mremap() partially work for NOMMU kernels
Make mremap() partially work for NOMMU kernels. It may resize a VMA provided that it doesn't exceed the size of the slab object in which the storage is allocated that the VMA refers to. Shareable VMAs may not be resized. Moving VMAs (as permitted by MREMAP_MAYMOVE) is not currently supported. This patch also makes use of the fact that the VMA list is now ordered to cut it short when possible. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'Documentation/nommu-mmap.txt')
-rw-r--r--Documentation/nommu-mmap.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/Documentation/nommu-mmap.txt b/Documentation/nommu-mmap.txt
index 83f4b083d57e..3ce890664936 100644
--- a/Documentation/nommu-mmap.txt
+++ b/Documentation/nommu-mmap.txt
@@ -128,6 +128,30 @@ FURTHER NOTES ON NO-MMU MMAP
128 error will result if they don't. This is most likely to be encountered 128 error will result if they don't. This is most likely to be encountered
129 with character device files, pipes, fifos and sockets. 129 with character device files, pipes, fifos and sockets.
130 130
131
132=============
133NO-MMU MREMAP
134=============
135
136The mremap() function is partially supported. It may change the size of a
137mapping, and may move it[*] if MREMAP_MAYMOVE is specified and if the new size
138of the mapping exceeds the size of the slab object currently occupied by the
139memory to which the mapping refers, or if a smaller slab object could be used.
140
141MREMAP_FIXED is not supported, though it is ignored if there's no change of
142address and the object does not need to be moved.
143
144Shared mappings may not be moved. Shareable mappings may not be moved either,
145even if they are not currently shared.
146
147The mremap() function must be given an exact match for base address and size of
148a previously mapped object. It may not be used to create holes in existing
149mappings, move parts of existing mappings or resize parts of mappings. It must
150act on a complete mapping.
151
152[*] Not currently supported.
153
154
131============================================ 155============================================
132PROVIDING SHAREABLE CHARACTER DEVICE SUPPORT 156PROVIDING SHAREABLE CHARACTER DEVICE SUPPORT
133============================================ 157============================================