Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164307988
D37389.id113102.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
547 B
Referenced Files
None
Subscribers
None
D37389.id113102.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
@@ -249,4 +249,12 @@
}
}
+#define memset_startat(ptr, bytepat, smember) \
+({ \
+ uint8_t *_ptr = (uint8_t *)(ptr); \
+ int _c = (int)(bytepat); \
+ size_t _o = offsetof(typeof(*(ptr)), smember); \
+ memset(_ptr + _o, _c, sizeof(*(ptr)) - _o); \
+})
+
#endif /* _LINUXKPI_LINUX_STRING_H_ */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 31, 3:16 PM (12 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35788590
Default Alt Text
D37389.id113102.diff (547 B)
Attached To
Mode
D37389: LinuxKPI: add memset_startat macro
Attached
Detach File
Event Timeline
Log In to Comment