Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152955967
D56442.id175706.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
512 B
Referenced Files
None
Subscribers
None
D56442.id175706.diff
View Options
Index: sys/compat/linuxkpi/common/include/linux/string.h
===================================================================
--- sys/compat/linuxkpi/common/include/linux/string.h
+++ sys/compat/linuxkpi/common/include/linux/string.h
@@ -198,6 +198,16 @@
return (NULL);
}
+static inline bool
+mem_is_zero(const void *start, size_t length)
+{
+ bool is_zero;
+
+ is_zero = !memchr_inv(start, 0, length);
+
+ return (is_zero);
+}
+
static inline size_t
str_has_prefix(const char *str, const char *prefix)
{
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 19, 7:47 AM (7 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31754295
Default Alt Text
D56442.id175706.diff (512 B)
Attached To
Mode
D56442: linuxkpi: Add `mem_is_zero()`
Attached
Detach File
Event Timeline
Log In to Comment