The vm_map_simplify_entry function simplifies the given entry by merging with either neighbour. The map must be locked upon entry.
This function also has the ability to merge with both neighbours.
This function guarantees that the passed entry remains valid, although possibly extended.
vm_map(9), vm_map_insert(9), vm_map_remove(9)