Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108596805
D42265.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
602 B
Referenced Files
None
Subscribers
None
D42265.diff
View Options
diff --git a/sys/vm/uma.h b/sys/vm/uma.h
--- a/sys/vm/uma.h
+++ b/sys/vm/uma.h
@@ -302,6 +302,8 @@
#define UMA_ALIGN_SHORT (sizeof(short) - 1) /* "" short */
#define UMA_ALIGN_CHAR (sizeof(char) - 1) /* "" char */
#define UMA_ALIGN_CACHE (uma_get_cache_align_mask()) /* Cache line size align */
+/* Align both to cache line size and an explicit alignment (through mask). */
+#define UMA_ALIGN_CACHE_AND_MASK(mask) (uma_get_cache_align_mask() | (mask))
#define UMA_ALIGNOF(type) (_Alignof(type) - 1) /* Alignment fit for 'type' */
#define UMA_ANYDOMAIN -1 /* Special value for domain search. */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 27, 6:43 PM (7 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16205019
Default Alt Text
D42265.diff (602 B)
Attached To
Mode
D42265: uma: Permit specifying max of cache line and some custom alignment
Attached
Detach File
Event Timeline
Log In to Comment