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.
vmsizealignphase
from an
align
aligned boundary.
phasealign.
If
align
is zero,
phase
should be zero.
Otherwise,
phase
should be smaller than
align.
nocrossnocross
aligned boundary.
minaddrmaxaddrflagsThe allocation strategy is one of:
VM_BESTFITVM_INSTANTFITThe sleep flag should be one of:
VM_SLEEPVM_NOSLEEPVMEM_ADDR_NULL
if there are not enough resources available.
)
returns an allocated vmem_addr_t.
Otherwise, it returns
VMEM_ADDR_NULL.