---
title: allocatePageTable
framework: kernel
role: pseudoSymbol
path: kernel/iofirewiresbp2orb/1812982-allocatepagetable
---

# allocatePageTable

Allocates memory for the page table.

## Declaration

```occ
virtual IOReturn allocatePageTable(
 UInt32entryCount ); 
```

## Parameters

- `entryCount`: number of entries of page table to be allocated.

## Overview

Overview Page table allocation is handle automatically by the ORB, except if the kFWSBP2CommandFixedSize flags is set. In this case we will fail to write a page table if we need more page table space than we have already. This method is exposed so these drivers can preallocate as much page table as they need. This is useful if your driver is part of the paging path and cannot allow allocations to occur.

## See Also

### Miscellaneous

- [deallocatePageTable](kernel/iofirewiresbp2orb/1812989-deallocatepagetable.md)
- [getCommandBufferDescriptor](kernel/iofirewiresbp2orb/1812997-getcommandbufferdescriptor.md)
- [getCommandFlags](kernel/iofirewiresbp2orb/1813002-getcommandflags.md)
- [getCommandGeneration](kernel/iofirewiresbp2orb/1813010-getcommandgeneration.md)
- [getCommandTimeout](kernel/iofirewiresbp2orb/1813017-getcommandtimeout.md)
- [getLogin](kernel/iofirewiresbp2orb/1813023-getlogin.md)
- [getMaxPayloadSize](kernel/iofirewiresbp2orb/1813031-getmaxpayloadsize.md)
- [getORBAddress](kernel/iofirewiresbp2orb/1813039-getorbaddress.md)
- [getRefCon](kernel/iofirewiresbp2orb/1813049-getrefcon.md)
- [getRefCon64](kernel/iofirewiresbp2orb/1813059-getrefcon64.md)
- [release](kernel/iofirewiresbp2orb/1813072-release.md)
- [releaseCommandBuffers](kernel/iofirewiresbp2orb/1813085-releasecommandbuffers.md)
- [setBufferConstraints](kernel/iofirewiresbp2orb/1813096-setbufferconstraints.md)
- [setCommandBlock(IOMemoryDescriptor *)](kernel/iofirewiresbp2orb/1813109-setcommandblock.md)
- [setCommandBlock(void *, UInt32)](kernel/iofirewiresbp2orb/1813121-setcommandblock.md)
- [setCommandBuffers](kernel/iofirewiresbp2orb/1813129-setcommandbuffers.md)
- [setCommandBuffersAsRanges(IOMemoryDescriptor *, UInt32, UInt32)](kernel/iofirewiresbp2orb/1813141-setcommandbuffersasranges.md)
- [setCommandBuffersAsRanges(IOVirtualRange *, UInt32, IODirection, task_t, UInt32, UInt32)](kernel/iofirewiresbp2orb/1813149-setcommandbuffersasranges.md)
- [setCommandBuffersAsRanges64](kernel/iofirewiresbp2orb/1813162-setcommandbuffersasranges64.md)
- [setCommandFlags](kernel/iofirewiresbp2orb/1813178-setcommandflags.md)
- [setCommandGeneration](kernel/iofirewiresbp2orb/1813197-setcommandgeneration.md)
- [setCommandTimeout](kernel/iofirewiresbp2orb/1813211-setcommandtimeout.md)
- [setMaxPayloadSize](kernel/iofirewiresbp2orb/1813231-setmaxpayloadsize.md)
- [setRefCon](kernel/iofirewiresbp2orb/1813244-setrefcon.md)
- [setRefCon64](kernel/iofirewiresbp2orb/1813262-setrefcon64.md)
