Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F168005001
D56442.id.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.id.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
Wed, Aug 26, 9:13 PM (5 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37261860
Default Alt Text
D56442.id.diff (473 B)
Attached To
Mode
D56442: linuxkpi: Add `mem_is_zero()`
Attached
Detach File
Event Timeline
Log In to Comment