/* * uvm_map_findspace: find "length" sized space in "map". * * => "hint" is a hint about where we want it, unless UVM_FLAG_FIXED is * set in "flags" (in which case we insist on using "hint"). * => "result" is VA returned * => uobj/uoffset are to be used to handle VAC alignment, if required * => if "align" is non-zero, we attempt to align to that value. * => caller must at least have read-locked map * => returns NULL on failure, or pointer to prev. map entry if success * => note this is a cross between the old vm_map_findspace and vm_map_find */