Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177523959
D37389.1794623407.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
547 B
Referenced Files
None
Subscribers
None
D37389.1794623407.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
Sat, Nov 14, 2:30 AM (2 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41714221
Default Alt Text
D37389.1794623407.diff (547 B)
Attached To
Mode
D37389: LinuxKPI: add memset_startat macro
Attached
Detach File
Event Timeline