Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106190322
D34039.id101928.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
923 B
Referenced Files
None
Subscribers
None
D34039.id101928.diff
View Options
Index: sys/net/vnet.h
===================================================================
--- sys/net/vnet.h
+++ sys/net/vnet.h
@@ -64,7 +64,7 @@
* pointer to storage for virtualized global variables. Expose to userspace
* as required for libkvm.
*/
-#if defined(_KERNEL) || defined(_WANT_VNET)
+#if defined(_KERNEL) || defined(_WANT_VNET) || defined(_KERNEL_UT)
#include <sys/queue.h>
struct vnet {
@@ -87,7 +87,7 @@
#define VNET_SYMPREFIX "vnet_entry_"
#endif
-#ifdef _KERNEL
+#if defined(_KERNEL) || defined(_KERNEL_UT)
#define VNET_PCPUSTAT_DECLARE(type, name) \
VNET_DECLARE(counter_u64_t, name[sizeof(type) / sizeof(uint64_t)])
@@ -452,6 +452,6 @@
#define VNET_GLOBAL_EVENTHANDLER_REGISTER(name, func, arg, priority) \
eventhandler_register(NULL, #name, func, arg, priority)
#endif /* VIMAGE */
-#endif /* _KERNEL */
+#endif /* _KERNEL || _KERNEL_UT_VNET_ */
#endif /* !_NET_VNET_H_ */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 27, 9:26 PM (8 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15617804
Default Alt Text
D34039.id101928.diff (923 B)
Attached To
Mode
D34039: Expose sys/vnet.h kernel decls to sysunit tests
Attached
Detach File
Event Timeline
Log In to Comment