]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC 324072: Add UMA_ALIGNOF().
authorjhb <jhb@FreeBSD.org>
Fri, 13 Oct 2017 17:11:08 +0000 (17:11 +0000)
committerjhb <jhb@FreeBSD.org>
Fri, 13 Oct 2017 17:11:08 +0000 (17:11 +0000)
commitb103976a9b988a3265158e4d747dff5c7c7851cd
treecfc783c6de32ae8df3031646b690f8a9afea6366
parent32dd1517a5c2f1863848312e4bbeb2e792d91b0d
MFC 324072: Add UMA_ALIGNOF().

This is a wrapper around _Alignof() that sets the alignment for a zone
to the alignment required by a given type.  This allows the compiler to
determine the proper alignment rather than having the programmer try to
guess.
sys/vm/uma.h