[go: up one dir, main page]

|
|
Log in / Subscribe / Register

Movable block allocator

Movable block allocator

Posted Aug 3, 2010 2:59 UTC (Tue) by mebourne (guest, #50785)
Parent article: Contiguous memory allocation for drivers

A long time ago I implemented a sliding block memory allocator for a text editor in C. When allocating a block you could provide a relocation handler which would be called when the block got moved. That way the memory allocator could move blocks around at will to ensure minimum fragmentation. It worked very well and something similar would seem to be a good solution here. eg. If a DMA area had to be moved to make a larger continuous block for another user then the relocation handler could reprogram the hardware for the new address.


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds