Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102982867
D24849.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
605 B
Referenced Files
None
Subscribers
None
D24849.diff
View Options
Index: head/sys/compat/linuxkpi/common/include/linux/kernel.h
===================================================================
--- head/sys/compat/linuxkpi/common/include/linux/kernel.h
+++ head/sys/compat/linuxkpi/common/include/linux/kernel.h
@@ -462,6 +462,9 @@
type __max2 = (y); \
__max1 > __max2 ? __max1 : __max2; })
+#define offsetofend(t, m) \
+ (offsetof(t, m) + sizeof((((t *)0)->m)))
+
#define clamp_t(type, _x, min, max) min_t(type, max_t(type, _x, min), max)
#define clamp(x, lo, hi) min( max(x,lo), hi)
#define clamp_val(val, lo, hi) clamp_t(typeof(val), val, lo, hi)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 20, 11:28 AM (21 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14737166
Default Alt Text
D24849.diff (605 B)
Attached To
Mode
D24849: linuxkpi: Add offsetofend macro
Attached
Detach File
Event Timeline
Log In to Comment