The function aligned_alloc() is the same as memalign(), except for the added restriction that size should be a multiple of alignment.
GrapheneOS Features Install Build Usage FAQ Releases Source History Articles Donate Contact Features overview GrapheneOS is a private and secure mobile operating system with great functionality and usability. It starts f...
The posix_memalign() function shall allocate size bytes aligned on a boundary specified by alignment, and shall return a pointer to the allocated memory in memptr. The value of alignment shall be a power of two multiple...