---
title: IOMallocPageable
framework: kernel
role: symbol
role_heading: Function
path: kernel/1575327-iomallocpageable
---

# IOMallocPageable

Allocates pageable memory in the kernel map.

## Declaration

```occ
void * IOMallocPageable(vm_size_t size, vm_size_t alignment);
```

## Parameters

- `size`: Size of the memory requested.
- `alignment`: Byte count of the alignment for the memory. For example, pass 256 to get memory allocated at an address with bits 0-7 zero.

## Return Value

Return Value Pointer to the allocated memory, or zero on failure.

## Discussion

Discussion This is a utility to allocate pageable memory in the kernel. This function may block and so should not be called from interrupt level or while a simple lock is held.

## See Also

### Allocation

- [IOMalloc](kernel/1575326-iomalloc.md)
- [IOMallocAligned](kernel/1575291-iomallocaligned.md)
- [IOMallocZero](kernel/3074962-iomalloczero.md)
- [IORangeAllocator](kernel/iorangeallocator.md)
