Files
jsix_import/definitions/objects/vma.def
Justin C. Miller f51f519c31 [kernel] Allow passing 0 to vma_resize to query the current size
Passing a size of 0 in to vma_resize will now not attempt to alter the VMA size, but will
still put the size into the passed-in pointer. Using this allows querying the size of a
VMA without changing it.
2024-02-18 17:27:07 -08:00

38 lines
770 B
Modula-2

import "objects/process.def"
object vma : object {
uid d6a12b63b3ed3937
cname vm_area
capabilities [
map
unmap
resize
]
method create [constructor] {
param size size
param flags uint32
}
method create_map [constructor cap:map] {
param size size
param address address [inout]
param flags uint32
}
method map [cap:map] {
param process ref process [optional]
param address address [inout]
param flags uint32
}
method unmap [cap:unmap] {
param process ref process [optional]
}
method resize [cap:resize] {
param size size [inout] # New size for the VMA, or 0 to query the current size without changing
}
}