Module Name: src Committed By: thorpej Date: Tue Jan 21 04:09:11 UTC 2020
Modified Files: src/sys/sys: rwlock.h Log Message: Update a comment. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/sys/sys/rwlock.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/sys/rwlock.h diff -u src/sys/sys/rwlock.h:1.13 src/sys/sys/rwlock.h:1.14 --- src/sys/sys/rwlock.h:1.13 Sun Jan 19 18:34:24 2020 +++ src/sys/sys/rwlock.h Tue Jan 21 04:09:10 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: rwlock.h,v 1.13 2020/01/19 18:34:24 ad Exp $ */ +/* $NetBSD: rwlock.h,v 1.14 2020/01/21 04:09:10 thorpej Exp $ */ /*- * Copyright (c) 2002, 2006, 2007, 2008, 2019, 2020 The NetBSD Foundation, Inc. @@ -63,10 +63,10 @@ typedef struct krwlock krwlock_t; * WRITE_LOCKED bit is clear, then the owner field is actually a count of * the number of readers. The rw_owner field is laid out like so: * - * N 4 3 2 1 0 - * +---------------------------------------------------------+ - * | owner or read count | nodbug | wrlock | wrwant | wait | - * +---------------------------------------------------------+ + * N 5 4 3 2 1 0 + * +------------------------------------------------------------------+ + * | owner or read count | nodbug | <free> | wrlock | wrwant | wait | + * +------------------------------------------------------------------+ */ #define RW_HAS_WAITERS 0x01UL /* lock has waiters */ #define RW_WRITE_WANTED 0x02UL /* >= 1 waiter is a writer */