I have to port one middleware in to linux.The middleware is independant of the OS, so I have to provide the API's for both kernel and user level to the middleware.The memory used by middleware is a flat memory. The middle ware needs API's for both system allocation(message queues..) and application heap allocation. The system allocation should be fast and it is a one time allocation.Please give me some valuable suggestions, or ideas.