aboutsummaryrefslogtreecommitdiffstats
path: root/sys/decl.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-01-05 14:16:07 +0100
committerDmitry Vyukov <dvyukov@google.com>2017-01-09 20:20:48 +0100
commit94b38efc1d80ae2854d29af44c6d5918a2cb40cd (patch)
tree401943d29621eeb485b016e74e3062178091e12a /sys/decl.go
parentb5aa8b45061e01c79cf78fe3a634abf5dc6d3f46 (diff)
sys: allow to specify number of pages for vma type
Allows to write vma[4] or vma[5-10] to specify desired number of pages.
Diffstat (limited to 'sys/decl.go')
-rw-r--r--sys/decl.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/decl.go b/sys/decl.go
index 63fca61b7..322158b92 100644
--- a/sys/decl.go
+++ b/sys/decl.go
@@ -143,6 +143,8 @@ func (t *BufferType) Align() uintptr {
type VmaType struct {
TypeCommon
+ RangeBegin int64 // in pages
+ RangeEnd int64
}
func (t *VmaType) Size() uintptr {