summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_cow.c
diff options
context:
space:
mode:
authornetchild <netchild@FreeBSD.org>2011-02-25 10:11:01 +0000
committernetchild <netchild@FreeBSD.org>2011-02-25 10:11:01 +0000
commitcc4128c6b1ffcb09a70e70959874cc2bb6e81d0e (patch)
tree777029c0673c0c489ae84b9e4b20c9e41ad56aac /sys/kern/uipc_cow.c
parent86423932a67f9fb0a4432c59110644406f829c52 (diff)
downloadFreeBSD-src-cc4128c6b1ffcb09a70e70959874cc2bb6e81d0e.zip
FreeBSD-src-cc4128c6b1ffcb09a70e70959874cc2bb6e81d0e.tar.gz
Add some FEATURE macros for various features (AUDIT/CAM/IPC/KTR/MAC/NFS/NTP/
PMC/SYSV/...). No FreeBSD version bump, the userland application to query the features will be committed last and can serve as an indication of the availablility if needed. Sponsored by: Google Summer of Code 2010 Submitted by: kibab Reviewed by: arch@ (parts by rwatson, trasz, jhb) X-MFC after: to be determined in last commit with code from this project
Diffstat (limited to 'sys/kern/uipc_cow.c')
-rw-r--r--sys/kern/uipc_cow.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/uipc_cow.c b/sys/kern/uipc_cow.c
index 12404b5..654b6d7 100644
--- a/sys/kern/uipc_cow.c
+++ b/sys/kern/uipc_cow.c
@@ -40,6 +40,7 @@ __FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/systm.h>
+#include <sys/sysctl.h>
#include <sys/kernel.h>
#include <sys/proc.h>
#include <sys/lock.h>
@@ -57,6 +58,7 @@ __FBSDID("$FreeBSD$");
#include <vm/vm_page.h>
#include <vm/vm_object.h>
+FEATURE(zero_copy_sockets, "Zero copy sockets support");
struct netsend_cow_stats {
int attempted;
OpenPOWER on IntegriCloud