Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F159725928
D56442.id176132.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
473 B
Referenced Files
None
Subscribers
None
D56442.id176132.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
@@ -198,6 +198,12 @@
return (NULL);
}
+static inline bool
+mem_is_zero(const void *start, size_t length)
+{
+ return (memchr_inv(start, 0, length) == NULL);
+}
+
static inline size_t
str_has_prefix(const char *str, const char *prefix)
{
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jun 18, 1:34 PM (17 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32019039
Default Alt Text
D56442.id176132.diff (473 B)
Attached To
Mode
D56442: linuxkpi: Add `mem_is_zero()`
Attached
Detach File
Event Timeline
Log In to Comment