Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161366971
D30442.id90602.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D30442.id90602.diff
View Options
Index: lib/libc/sys/mprotect.2
===================================================================
--- lib/libc/sys/mprotect.2
+++ lib/libc/sys/mprotect.2
@@ -28,7 +28,7 @@
.\" @(#)mprotect.2 8.1 (Berkeley) 6/9/93
.\" $FreeBSD$
.\"
-.Dd February 26, 2020
+.Dd June 11, 2021
.Dt MPROTECT 2
.Os
.Sh NAME
@@ -46,14 +46,19 @@
system call
changes the specified pages to have protection
.Fa prot .
-Not all implementations will guarantee protection on a page basis;
-the granularity of protection changes may be as large as an entire region.
-A region is the virtual address space defined by the start
-and end addresses of a
-.Vt "struct vm_map_entry" .
.Pp
-Currently these protection bits are known,
-which can be combined, OR'd together:
+Some architectures support more than one page size.
+For mapping with page sizes larger than the default
+.Dv PAGE_SIZE ,
+the
+.Fa addr
+and
+.Fa len
+arguments must cover then entire allocation.
+.Pp
+The
+.Fa prot
+argument shall be the bitwise OR of one or more of the following values:
.Pp
.Bl -tag -width ".Dv PROT_WRITE" -compact
.It Dv PROT_NONE
@@ -66,8 +71,11 @@
The pages can be executed.
.El
.Pp
-In addition to these protection flags,
+In addition to these standard protection flags,
+the
.Fx
+implementation of
+.Fn mprotect
provides the ability to set the maximum protection of a region
(which prevents
.Nm
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jul 4, 4:58 AM (10 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34652579
Default Alt Text
D30442.id90602.diff (1 KB)
Attached To
Mode
D30442: mprotect.2: Update text for largepages
Attached
Detach File
Event Timeline
Log In to Comment