Page MenuHomeFreeBSD

D40757.diff
No OneTemporary

D40757.diff

diff --git a/sys/compat/linuxkpi/common/include/linux/list.h b/sys/compat/linuxkpi/common/include/linux/list.h
--- a/sys/compat/linuxkpi/common/include/linux/list.h
+++ b/sys/compat/linuxkpi/common/include/linux/list.h
@@ -466,6 +466,20 @@
return list->next == head;
}
+static inline size_t
+list_count_nodes(const struct list_head *list)
+{
+ const struct list_head *lh;
+ size_t count;
+
+ count = 0;
+ list_for_each(lh, list) {
+ count++;
+ }
+
+ return (count);
+}
+
#define hlist_entry(ptr, type, field) container_of(ptr, type, field)
#define hlist_for_each(p, head) \

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 27, 9:42 PM (8 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16214353
Default Alt Text
D40757.diff (590 B)

Event Timeline