OpenBSD CVS

CVS log for src/share/man/man9/rwlock.9


[BACK] Up to [local] / src / share / man / man9

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.26 / (download) - annotate - [select for diffs], Sat Jan 16 15:02:40 2021 UTC (3 years, 4 months ago) by mvs
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, HEAD
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

Fix prototype for rw_assert_wrlock() function.

ok anton@ kn@

Revision 1.25 / (download) - annotate - [select for diffs], Mon Nov 4 18:16:27 2019 UTC (4 years, 7 months ago) by anton
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.24: +3 -2 lines
Diff to previous 1.24 (colored)

xr rwsleep(9); ok millert@ visa@

Revision 1.24 / (download) - annotate - [select for diffs], Mon Feb 25 22:03:56 2019 UTC (5 years, 3 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.23: +26 -14 lines
Diff to previous 1.23 (colored)

create a RETURN VALUES section and put things that return in there.

hopefully it is a bit more obvious that what rw_enter returns can
be passed up to userland.

reads ok jmc@
ok mpi@

Revision 1.23 / (download) - annotate - [select for diffs], Mon Jun 4 04:52:33 2018 UTC (6 years ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

...and correct the count at which warning normally occurs

Revision 1.22 / (download) - annotate - [select for diffs], Mon Jun 4 04:49:08 2018 UTC (6 years ago) by guenther
Branch: MAIN
Changes since 1.21: +3 -2 lines
Diff to previous 1.21 (colored)

Xr witness 4

Revision 1.21 / (download) - annotate - [select for diffs], Mon Jun 4 04:46:08 2018 UTC (6 years ago) by guenther
Branch: MAIN
Changes since 1.20: +8 -2 lines
Diff to previous 1.20 (colored)

Add RW_DUPOK for suppressing witness checks for specific rw_enter() calls

ok deraadt@ visa@

Revision 1.20 / (download) - annotate - [select for diffs], Mon Oct 30 13:33:36 2017 UTC (6 years, 7 months ago) by visa
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.19: +35 -4 lines
Diff to previous 1.19 (colored)

Document {mtx,rw,rrw}_init_flags() and MUTEX_INITIALIZER_FLAGS().

Input and OK jmc@, OK mpi@

Revision 1.19 / (download) - annotate - [select for diffs], Sat Aug 12 23:27:44 2017 UTC (6 years, 9 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.18: +7 -3 lines
Diff to previous 1.18 (colored)

Add rw_assert_anylock(), for assering you have it either read or write locked

ok tedu@ mpi@

Revision 1.18 / (download) - annotate - [select for diffs], Sun Jun 19 11:54:33 2016 UTC (7 years, 11 months ago) by natano
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

Remove the lockmgr() API. It is only used by filesystems, where it is a
trivial change to use rrw locks instead. All it needs is LK_* defines
for the RW_* flags.

tested by naddy and sthen on package building infrastructure
input and ok jmc mpi tedu

Revision 1.17 / (download) - annotate - [select for diffs], Wed Jul 9 18:00:09 2014 UTC (9 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.16: +7 -5 lines
Diff to previous 1.16 (colored)

sort out the MLINKS mess, and tweak previous a bit;

Revision 1.16 / (download) - annotate - [select for diffs], Wed Jul 9 13:43:25 2014 UTC (9 years, 11 months ago) by guenther
Branch: MAIN
Changes since 1.15: +32 -25 lines
Diff to previous 1.15 (colored)

Fixed rw_status() description, moving it to where it belongs.
Clarify threads vs process.
Move up some general explanatory text.
Add rw_assert_* to the NAME section and kill crossref to spl(9)

Revision 1.15 / (download) - annotate - [select for diffs], Wed Jul 9 13:12:52 2014 UTC (9 years, 11 months ago) by tedu
Branch: MAIN
Changes since 1.14: +32 -9 lines
Diff to previous 1.14 (colored)

crude rrwlock to appease guenther and beck

Revision 1.14 / (download) - annotate - [select for diffs], Fri Feb 14 05:15:16 2014 UTC (10 years, 3 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.13: +2 -5 lines
Diff to previous 1.13 (colored)

remove the caveat apologising that you cant use rwlocks in interrupt
handlers now that context explains that you can only use them in
autoconf or process context.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Feb 14 05:14:25 2014 UTC (10 years, 3 months ago) by dlg
Branch: MAIN
Changes since 1.12: +14 -2 lines
Diff to previous 1.12 (colored)

CONTEXT

Revision 1.12 / (download) - annotate - [select for diffs], Mon Dec 9 04:13:40 2013 UTC (10 years, 6 months ago) by dlg
Branch: MAIN
Changes since 1.11: +13 -3 lines
Diff to previous 1.11 (colored)

document RWLOCK_INITIALIZER

Revision 1.11 / (download) - annotate - [select for diffs], Wed Jul 17 20:21:55 2013 UTC (10 years, 10 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.10: +3 -4 lines
Diff to previous 1.10 (colored)

use .Mt for AUTHORS email; from Jan Stary <hans at stare dot cz>; ok jmc@

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jun 4 19:27:12 2013 UTC (11 years ago) by schwarze
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

Replace old-fashioned .Fd by new-fangled .In for #include lines.
Diff from Jan Klemkow <j dot klemkow at wemelug dot de> on tech@.
No objection from jmc@ against this type of change.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Aug 1 14:21:10 2010 UTC (13 years, 10 months ago) by blambert
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.8: +17 -2 lines
Diff to previous 1.8 (colored)

document the rw_assert_ functions

ok jmc@

Revision 1.8 / (download) - annotate - [select for diffs], Sun Dec 9 20:54:01 2007 UTC (16 years, 6 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

update pedro's email address, at his request;

Revision 1.7 / (download) - annotate - [select for diffs], Thu May 31 19:20:01 2007 UTC (17 years ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

convert to new .Dd format;

Revision 1.6 / (download) - annotate - [select for diffs], Mon May 14 16:39:34 2007 UTC (17 years ago) by jsg
Branch: MAIN
Changes since 1.5: +4 -1 lines
Diff to previous 1.5 (colored)

Add notes about sleeping with held locks and interrupt handler usage.
Based on comments by art, and tweaked by jmc.

ok art@

Revision 1.5 / (download) - annotate - [select for diffs], Tue Apr 10 21:07:48 2007 UTC (17 years, 2 months ago) by art
Branch: MAIN
Changes since 1.4: +4 -1 lines
Diff to previous 1.4 (colored)

Document RW_DOWNGRADE.
miod noticed that I forgot to commit it.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Jan 11 12:06:46 2007 UTC (17 years, 4 months ago) by art
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.3: +38 -1 lines
Diff to previous 1.3 (colored)

Document rw_enter and rw_exit.
Requested and ok by dlg@, ok jmc@

Revision 1.3 / (download) - annotate - [select for diffs], Wed Aug 16 10:19:00 2006 UTC (17 years, 9 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.2: +5 -1 lines
Diff to previous 1.2 (colored)

document the name argument to rw_init.

ok mbalmer@ jmc@ pedro@

Revision 1.2 / (download) - annotate - [select for diffs], Sun May 7 20:15:06 2006 UTC (18 years, 1 month ago) by tedu
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

name arg for rw_init

Revision 1.1 / (download) - annotate - [select for diffs], Thu Apr 20 20:32:31 2006 UTC (18 years, 1 month ago) by pedro
Branch: MAIN

Document the rwlock() API, okay deraadt@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.