Support for allocating memory for userspace.