Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115832086
D43644.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
594 B
Referenced Files
None
Subscribers
None
D43644.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/string.h b/sys/compat/linuxkpi/common/include/linux/string.h
--- a/sys/compat/linuxkpi/common/include/linux/string.h
+++ b/sys/compat/linuxkpi/common/include/linux/string.h
@@ -265,4 +265,12 @@
memset(_ptr + _o, _c, sizeof(*(ptr)) - _o); \
})
+#define memset_after(ptr, bytepat, smember) \
+({ \
+ uint8_t *_ptr = (uint8_t *)(ptr); \
+ int _c = (int)(bytepat); \
+ size_t _o = offsetofend(typeof(*(ptr)), smember); \
+ memset(_ptr + _o, _c, sizeof(*(ptr)) - _o); \
+})
+
#endif /* _LINUXKPI_LINUX_STRING_H_ */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 30, 7:29 AM (16 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17849958
Default Alt Text
D43644.diff (594 B)
Attached To
Mode
D43644: LinuxKPI: implement memset_after()
Attached
Detach File
Event Timeline
Log In to Comment