Locking Containers Containers need to be locked during certain operations, for example device I/O container_lock_map (handle, unmap) => map item container_lock_physical (handle, unmap) => array of physical addresses container_unlock (handle) Locks a container Protects the physical memory from being unmapping or deallocated If unmap is true, all maps are unmapped and noone else may map the item Returns a map item or the physical addresses Increments the version id container_unmap_all (handle) => version id Unmaps all pages in container from all other tasks Increments the version id and returns it