memory
memory copied to clipboard
Page (4KiB) alignment for memory pool
Hi, I'm trying to create a memory_pool with 4KiB alignment. I tried to wrap the memory_pool with aligned_allocator, but it fails as the max alignment from a reason I can't understand is 8 bytes. Is there a way to create an allocator that allocated 4K buffers with pointers aligned to 4K?
I need this in order to handle some direct IO to 4K block devices. Thanks!