summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2004-10-19 14:34:13 +0000
committerandre <andre@FreeBSD.org>2004-10-19 14:34:13 +0000
commit23afa2eef1039011de5f37f016a491ec611e7039 (patch)
tree5a48d12364877442eda249681734eefe0cca0bda /sys/netinet
parentdcb4801af4f63e7a3401065672bbc87b43a5bdb9 (diff)
downloadFreeBSD-src-23afa2eef1039011de5f37f016a491ec611e7039.zip
FreeBSD-src-23afa2eef1039011de5f37f016a491ec611e7039.tar.gz
Add a macro for the destruction of INP_INFO_LOCK's used by loadable modules.
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/in_pcb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h
index 53a418a..2f66e87 100644
--- a/sys/netinet/in_pcb.h
+++ b/sys/netinet/in_pcb.h
@@ -250,6 +250,7 @@ struct inpcbinfo { /* XXX documentation, prefixes */
#define INP_INFO_LOCK_INIT(ipi, d) \
mtx_init(&(ipi)->ipi_mtx, (d), NULL, MTX_DEF | MTX_RECURSE)
+#define INP_INFO_LOCK_DESTROY(ipi) mtx_destroy(&(ipi)->ipi_mtx)
#define INP_INFO_RLOCK(ipi) mtx_lock(&(ipi)->ipi_mtx)
#define INP_INFO_WLOCK(ipi) mtx_lock(&(ipi)->ipi_mtx)
#define INP_INFO_RUNLOCK(ipi) mtx_unlock(&(ipi)->ipi_mtx)
OpenPOWER on IntegriCloud