vmem_addr_t
vmem_xalloc(
vmem_t *vm
, vmem_size_t size
, vmem_size_t align
, vmem_size_t phase
, vmem_size_t nocross
, vmem_addr_t minaddr
, vmem_addr_t maxaddr
, vm_flag_t flags
)
)
allocates a resource from the arena.
vm
size
align
phase
from an
align
aligned boundary.
phase
align
.
If
align
is zero,
phase
should be zero.
Otherwise,
phase
should be smaller than
align
.
nocross
nocross
aligned boundary.
minaddr
maxaddr
flags
The allocation strategy is one of:
VM_BESTFIT
VM_INSTANTFIT
The sleep flag should be one of:
VM_SLEEP
VM_NOSLEEP
VMEM_ADDR_NULL
if there are not enough resources available.
)
returns an allocated vmem_addr_t.
Otherwise, it returns
VMEM_ADDR_NULL
.