---
title: allocateRange
framework: kernel
role: pseudoSymbol
path: kernel/iorangeallocator/1810314-allocaterange
---

# allocateRange

Allocates from the free list, at a set offset.

## Declaration

```occ
virtual bool allocateRange(
 IORangeScalarstart, 
 IORangeScalarsize ); 
```

## Parameters

- `start`: The beginning of the range requested.
- `size`: The size of the range requested.

## Return Value

Return Value Returns true if the allocation was successful, else false.

## Overview

Overview This method allocates a range from the free list, given a set offset passed in.

## See Also

### Miscellaneous

- [allocate](kernel/iorangeallocator/1810255-allocate.md)
- [deallocate](kernel/iorangeallocator/1810361-deallocate.md)
- [getFragmentCapacity](kernel/iorangeallocator/1810407-getfragmentcapacity.md)
- [getFragmentCount](kernel/iorangeallocator/1810456-getfragmentcount.md)
- [getFreeCount](kernel/iorangeallocator/1810490-getfreecount.md)
- [init](kernel/iorangeallocator/1810534-init.md)
- [setFragmentCapacityIncrement](kernel/iorangeallocator/1810575-setfragmentcapacityincrement.md)
- [withRange](kernel/iorangeallocator/1810621-withrange.md)
