[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.
This commit is contained in:
Justin C. Miller
2024-02-18 17:27:07 -08:00
parent 55a485ee67
commit f51f519c31
3 changed files with 8 additions and 4 deletions

View File

@@ -32,6 +32,6 @@ object vma : object {
}
method resize [cap:resize] {
param size size [inout]
param size size [inout] # New size for the VMA, or 0 to query the current size without changing
}
}