aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorLuigi Rizzo <luigi@FreeBSD.org>2015-07-19 17:54:42 +0000
committerLuigi Rizzo <luigi@FreeBSD.org>2015-07-19 17:54:42 +0000
commit85fe4e7c6be2d1edfee9fd96de81d39e0e765bcc (patch)
treec5240311b1c9ac6a94c556515a6b55c908bc0d21 /sys/dev
parent70888b7ed586a3cabc8802af8a6e0901326f68ba (diff)
downloadsrc-85fe4e7c6be2d1edfee9fd96de81d39e0e765bcc.tar.gz
src-85fe4e7c6be2d1edfee9fd96de81d39e0e765bcc.zip
small documentation update
Notes
Notes: svn path=/head/; revision=285695
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/netmap/netmap_kern.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/netmap/netmap_kern.h b/sys/dev/netmap/netmap_kern.h
index 36ef36b92ee9..b46050df9e00 100644
--- a/sys/dev/netmap/netmap_kern.h
+++ b/sys/dev/netmap/netmap_kern.h
@@ -503,8 +503,9 @@ struct netmap_adapter {
* that cannot be changed
*/
#define NAF_NATIVE 16 /* the adapter is native.
- * Virtual ports (vale, pipe, monitor...)
- * should never use this flag.
+ * Virtual ports (non persistent vale ports,
+ * pipes, monitors...) should never use
+ * this flag.
*/
#define NAF_NETMAP_ON 32 /* netmap is active (either native or
* emulated). Where possible (e.g. FreeBSD)
@@ -1483,7 +1484,7 @@ PNMB(struct netmap_adapter *na, struct netmap_slot *slot, uint64_t *pp)
*
* np_refs counts the number of references to the structure: one for the fd,
* plus (on FreeBSD) one for each active mmap which we track ourselves
- * (they are not unmapped on close(), unlike linux).
+ * (linux automatically tracks them, but FreeBSD does not).
* np_refs is protected by NMG_LOCK.
*
* Read access to the structure is lock free, because ni_nifp once set