diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-06-20 21:49:12 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-06-20 21:49:12 +0000 |
commit | 01c935b8b84eabec8ecb1775f2dd63c8ad1d292d (patch) | |
tree | 1c1fed60c22995bd9fcb6174459b699fa2e4aca1 | |
parent | fabe3e5325077791311a6f3aaffa6c3f4315a4c6 (diff) | |
download | FreeBSD-src-01c935b8b84eabec8ecb1775f2dd63c8ad1d292d.zip FreeBSD-src-01c935b8b84eabec8ecb1775f2dd63c8ad1d292d.tar.gz |
Include an annotation of NET_{LOCK,UNLOCK}_GIANT() noting that these
calls do not have the same recursion semantics as DROP_GIANT and
PICKUP_GIANT.
-rw-r--r-- | sys/sys/mutex.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/sys/mutex.h b/sys/sys/mutex.h index d31f3ea..0a1c991 100644 --- a/sys/sys/mutex.h +++ b/sys/sys/mutex.h @@ -350,7 +350,10 @@ do { \ * without special recursion handling. * * This mechanism is intended as temporary until everything of - * importance is properly locked. + * importance is properly locked. Note: the semantics for + * NET_{LOCK,UNLOCK}_GIANT() are not the same as DROP_GIANT() + * and PICKUP_GIANT(), as they are plain mutex operations + * without a recursion counter. */ extern int debug_mpsafenet; /* defined in net/netisr.c */ #define NET_LOCK_GIANT() do { \ |