Page MenuHomeFreeBSD

D56442.diff
No OneTemporary

D56442.diff

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

Mime Type
text/plain
Expires
Sun, Sep 13, 10:52 PM (2 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38875309
Default Alt Text
D56442.diff (473 B)

Event Timeline