small documentation update
This commit is contained in:
parent
70888b7ed5
commit
85fe4e7c6b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=285695
@ -503,8 +503,9 @@ struct netmap_adapter {
|
|||||||
* that cannot be changed
|
* that cannot be changed
|
||||||
*/
|
*/
|
||||||
#define NAF_NATIVE 16 /* the adapter is native.
|
#define NAF_NATIVE 16 /* the adapter is native.
|
||||||
* Virtual ports (vale, pipe, monitor...)
|
* Virtual ports (non persistent vale ports,
|
||||||
* should never use this flag.
|
* pipes, monitors...) should never use
|
||||||
|
* this flag.
|
||||||
*/
|
*/
|
||||||
#define NAF_NETMAP_ON 32 /* netmap is active (either native or
|
#define NAF_NETMAP_ON 32 /* netmap is active (either native or
|
||||||
* emulated). Where possible (e.g. FreeBSD)
|
* 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,
|
* 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
|
* 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.
|
* np_refs is protected by NMG_LOCK.
|
||||||
*
|
*
|
||||||
* Read access to the structure is lock free, because ni_nifp once set
|
* Read access to the structure is lock free, because ni_nifp once set
|
||||||
|
Loading…
Reference in New Issue
Block a user