2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
12 .\" Copyright 2016 Joyent, Inc.
19 .Nd aligned memory allocation
24 .Fa "size_t alignment"
32 bytes aligned on the specified alignment boundary
36 is constrained, it must be a power of two and it must be greater than or
37 equal to the size of a word on the platform.
39 Upon successful completion, the
41 function returns a pointer to suitably aligned memory at least
46 pointer is returned and
48 is set to indicate the error.
52 function will fail if:
55 The physical limits of the system are exceeded by
57 bytes of memory which cannot be allocated.
59 There is not enough memory available to allocate
61 bytes of memory; but the application could try again later.
66 It is not a power of two multiple of the word size.
68 .Sh INTERFACE STABILITY
75 .Xr posix_memalign 3C ,