Lines Matching defs:IORangeAllocator
45 /*! @class IORangeAllocator
47 @discussion The IORangeAllocator class provides functions for allocating ranges, at a fixed or any offset, and freeing them back to a free list. It is useful for describing ranges of memory or address space without requiring storage in the memory - information describing the free elements is kept elsewhere. Ranges are described by a start offset and a size. IORangeAllocator is optionally protected against multithreaded access.
50 class IORangeAllocator : public OSObject {
52 OSDeclareDefaultStructors(IORangeAllocator)
74 @abstract Standard initializer for IORangeAllocator.
75 @discussion This method initializes an IORangeAllocator and optionally sets the free list to contain one fragment, from zero to an endOfRange parameter. The capacity in terms of free fragments and locking options are set for the instance.
88 @abstract Standard factory method for IORangeAllocator.
89 @discussion This method allocates and initializes an IORangeAllocator and optionally sets the free list to contain one fragment, from zero to an endOfRange parameter. The capacity in terms of free fragments and locking options are set for the instance.
94 @result Returns the new IORangeAllocator instance, to be released by the caller, or zero on failure. */
96 static IORangeAllocator * withRange( IORangeScalar endOfRange,