summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-06-27 03:23:09 +0000
committerrwatson <rwatson@FreeBSD.org>2004-06-27 03:23:09 +0000
commit0fb2a4694cbff42e959de64a46ae35cd03964456 (patch)
tree118eb9a2a2d509316e90edad761f1f869ccfd7f4 /sys
parent33abe949904b44c184ccf4e75e671c33f4f192f2 (diff)
downloadFreeBSD-src-0fb2a4694cbff42e959de64a46ae35cd03964456.zip
FreeBSD-src-0fb2a4694cbff42e959de64a46ae35cd03964456.tar.gz
Annotate so_gencnt field of struct socket locked by so_global_mtx.
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/socketvar.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/socketvar.h b/sys/sys/socketvar.h
index a8c7449..fb81792 100644
--- a/sys/sys/socketvar.h
+++ b/sys/sys/socketvar.h
@@ -55,6 +55,7 @@ typedef u_quad_t so_gen_t;
* (e) locked by ACCEPT_LOCK().
* (f) not locked since integer reads/writes are atomic.
* (g) used only as a sleep/wakeup address, no value.
+ * (h) locked by global mutex so_global_mtx.
*/
struct socket {
int so_count; /* (b) reference count */
@@ -134,7 +135,7 @@ struct socket {
struct label *so_label; /* (b) MAC label for socket */
struct label *so_peerlabel; /* (b) cached MAC label for peer */
/* NB: generation count must not be first; easiest to make it last. */
- so_gen_t so_gencnt; /* generation count */
+ so_gen_t so_gencnt; /* (h) generation count */
void *so_emuldata; /* private data for emulators */
struct so_accf {
struct accept_filter *so_accept_filter;
OpenPOWER on IntegriCloud