#
285830 |
|
23-Jul-2015 |
gjb |
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1 builds. - Update newvers.sh to reflect RC1. - Update __FreeBSD_version to reflect 10.2. - Update default pkg(8) configuration to use the quarterly branch.[1]
Discussed with: re, portmgr [1] Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
256281 |
|
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
#
254175 |
|
10-Aug-2013 |
joel |
Minor mdoc nits.
|
#
254139 |
|
09-Aug-2013 |
attilio |
Give mutex(9) the ability to recurse on a per-instance basis. Now the MTX_RECURSE flag can be passed to the mtx_*_flag() calls. This helps in cases we want to narrow down to specific calls the possibility to recurse for some locks.
Sponsored by: EMC / Isilon storage division Reviewed by: jeff, alc Tested by: pho
|
#
227588 |
|
16-Nov-2011 |
pjd |
Constify arguments for locking KPIs where possible.
This enables locking consumers to pass their own structures around as const and be able to assert locks embedded into those structures.
Reviewed by: ed, kib, jhb
|
#
217074 |
|
06-Jan-2011 |
jhb |
Retire the INTR_FAST flag as it was obsoleted by the introduction of the filter argument to bus_setup_intr().
|
#
168071 |
|
30-Mar-2007 |
julian |
Add some cross references to locking.9 from related pages.
|
#
167387 |
|
09-Mar-2007 |
jhb |
Allow threads to atomically release rw and sx locks while waiting for an event. Locking primitives that support this (mtx, rw, and sx) now each include their own foo_sleep() routine. - Rename msleep() to _sleep() and change it's 'struct mtx' object to a 'struct lock_object' pointer. _sleep() uses the recently added lc_unlock() and lc_lock() function pointers for the lock class of the specified lock to release the lock while the thread is suspended. - Add wrappers around _sleep() for mutexes (mtx_sleep()), rw locks (rw_sleep()), and sx locks (sx_sleep()). msleep() still exists and is now identical to mtx_sleep(), but it is deprecated. - Rename SLEEPQ_MSLEEP to SLEEPQ_SLEEP. - Rewrite much of sleep.9 to not be msleep(9) centric. - Flesh out the 'RETURN VALUES' section in sleep.9 and add an 'ERRORS' section. - Add __nonnull(1) to _sleep() and msleep_spin() so that the compiler will warn if you try to pass a NULL wait channel. The functions already have a KASSERT to that effect.
|
#
167372 |
|
09-Mar-2007 |
jhb |
Place mtx_destroy() and rw_destroy() right after mtx_init() and rw_init() to match sx(9) and condvar(9).
|
#
165453 |
|
21-Dec-2006 |
pjd |
Document MTX_NOPROFILE flag.
|
#
164168 |
|
11-Nov-2006 |
ru |
Replace a reference to no longer existing MUTEX_PROFILING(9) with a LOCK_PROFILING(9).
|
#
160198 |
|
09-Jul-2006 |
maxim |
o Fix MTX_SYSINIT prototype.
PR: kern/99956 Submitted by: Arne Woerner MFC after: 1 week
|
#
155193 |
|
01-Feb-2006 |
glebius |
Xref rwlock(9).
Reviewed by: ru
|
#
150089 |
|
13-Sep-2005 |
jhb |
Various and sundry improvements: - Replace 'process' with 'thread' everywhere. - Update several places to note that that the fact that default mutexes may adaptively spin isn't necessarily MD, but is just part of the implementation as a whole. - Clarify the text about MTX_SPIN mutexes only being appropriate for INTR_FAST interrupts or other low level scheduler code to make the jargon more FreeBSD-ish rather than BSD/OS-ish. - Also, note that it is possible that interrupts aren't blocked but just deferred when a spin lock is held (the whole blocked vs. deferred bit is an MD implementation detail). - Remove statements saying that spin locks must be released in the exact opposite order that they were acquired. This stopped being true several years ago when we first added critical sections that stored their state in the current thread rather than in struct mtx. - Note that a mutex must be initialized before it is passed to any other mutex function, not just mtx_lock. - Clarify that mtx_trylock() only operates on MTX_DEF mutexes. - Simplify the text about possible preemption during a mtx_unlock(). - Use complete English sentences in place of phrases in a few places. - Clarify that it isn't ever safe to sleep with a mutex held. The kernel tends to panic when you do that.
Requested by: scottl (7) MFC after: 3 days
|
#
141957 |
|
15-Feb-2005 |
ru |
Don't say that mtx_lock() will "sleep" if another kernel thread is holding the mutex, say it will "block". Later in this manual page we say that sleeping while holding a mutex isn't allowed, and this can be confusing.
Submitted by: jhb
|
#
141846 |
|
13-Feb-2005 |
ru |
Expand *n't contractions.
|
#
141580 |
|
09-Feb-2005 |
ru |
Fixed the misplaced $FreeBSD$.
|
#
139764 |
|
06-Jan-2005 |
keramida |
"non-spin" is better with a dash, than without.
|
#
131635 |
|
05-Jul-2004 |
ru |
Fix the NAME section making whatis(1) happy in particular.
|
#
131530 |
|
03-Jul-2004 |
ru |
Mechanically kill hard sentence breaks and double whitespaces.
|
#
130582 |
|
16-Jun-2004 |
ru |
Assorted markup, spelling, and grammar fixes.
|
#
124965 |
|
25-Jan-2004 |
des |
Add a cross-reference to MUTEX_PROFILING(9).
|
#
124037 |
|
01-Jan-2004 |
jkoshy |
Add "options INVARIANTS" and "options INVARIANT_SUPPORT" to the synopsis, with supporting text in the body of the manual page.
Add a cross-reference to panic(9) for completeness.
Reviewed by: ru (synopsis changes)
|
#
123919 |
|
28-Dec-2003 |
jkoshy |
Use of the MTX_SYSINIT macro requires the inclusion of <sys/kernel.h>.
|
#
123447 |
|
11-Dec-2003 |
jkoshy |
Typo fix.
|
#
115209 |
|
21-May-2003 |
ru |
Assorted mdoc(7), grammar, spelling, and punctuation fixes.
Approved by: re (blanket)
|
#
111059 |
|
17-Feb-2003 |
chris |
Back out revision 1.34 until we can come up with a more accurate patch.
|
#
111058 |
|
17-Feb-2003 |
chris |
Add a section on Giant lock manipulation macros.
Submitted by: Hiten M. Pandya <hiten@angelica.unixdaemons.com> Reviewed by: bmilekic
|
#
105627 |
|
21-Oct-2002 |
gallatin |
Add some documentation of FreeBSD's special synchronization quirks which may surprise developers coming from Solaris, or other platforms which have a similar interface, but slightly different rules.
Reviewed by: jhb, ru
|
#
103913 |
|
24-Sep-2002 |
jhb |
Remove all mention of MTX_NOSWITCH. It was obsoleted a long time ago.
|
#
97949 |
|
06-Jun-2002 |
davidc |
Document MTX_DUPOK
Requested by: jeff (long ago)
|
#
97492 |
|
29-May-2002 |
ru |
mdoc(7) police: lint.
|
#
94520 |
|
12-Apr-2002 |
davidc |
Remove a duplicate description of the type parameter for mtx_init.
Noticed by: scottl
|
#
94485 |
|
12-Apr-2002 |
davidc |
Add text describing the new type parameter, and rename description to name as that is what it is called in mutex.h.
|
#
94478 |
|
12-Apr-2002 |
scottl |
Document the lock type argument of mtx_init().
|
#
94473 |
|
12-Apr-2002 |
davidc |
Update the .Fn line for MTX_SYSINIT to include the parameter types.
|
#
93680 |
|
02-Apr-2002 |
arr |
- Add notes about SX_SYSINIT and MTX_SYSINIT in order to document the recent additions of these macros. - Add in a MLINK to create SX_SYSINIT.9 and MTX_SYSINIT.9.
|
#
93337 |
|
28-Mar-2002 |
dd |
Add mtx_pool(9) to the SEE ALSO section.
Submitted by: Garrett Rooney <rooneg@electricjellyfish.net>
|
#
89124 |
|
09-Jan-2002 |
mpp |
ispell sweep of share/man/man9/*.
|
#
84306 |
|
01-Oct-2001 |
ru |
mdoc(7) police: Use the new .In macro for #include statements.
|
#
83567 |
|
17-Sep-2001 |
silby |
Common Mike adds see alsos from all of the synchronization man pages to their brethren.
|
#
82955 |
|
04-Sep-2001 |
ru |
mdoc(7) police: Please don't commit when you are drunk!
(Committer rules candidate.)
|
#
82774 |
|
02-Sep-2001 |
logo |
From Mike Silbersack's message on cvs-commits:
> > Doh! There is a sx man page, the mutex man page just doesn't have a SEE > > ALSO pointing to sx(9). Could some mdoc madman go add one?
|
#
81591 |
|
13-Aug-2001 |
ru |
mdoc(7) police: s;BSD/OS;.Bsx; where appropriate.
|
#
81298 |
|
08-Aug-2001 |
sheldonh |
can not -> cannot
|
#
79727 |
|
14-Jul-2001 |
schweikh |
Removed whitespace at end-of-line; no content changes. I simply did cd src/share; find man[1-9] -type f|xargs perl -pi -e 's/[ \t]+$//'
BTW, what editors are the culprits? I'm using vim and it shows me whitespace at EOL in troff files with a thick blue block...
Reviewed by: Silence from cvs diff -b MFC after: 7 days
|
#
76325 |
|
06-May-2001 |
dd |
s/mtx_try_enter/mtx_trylock/
|
#
75027 |
|
30-Mar-2001 |
jhb |
- Document mtx_initialized(). - Document that MTX_QUIET can be passed to mtx_init() and the new flag MTX_NOWITNESS.
|
#
74982 |
|
29-Mar-2001 |
bde |
Fixed wrong include in synopsis. <sys/param.h> is a prerequisite for <sys/mutex.h> due to #include spam in <sys/mutex.h>. (More precisely, <sys/time.h> is the prerequisite, but that is provided by standard #include spam in <sys/param.h>.)
Fixed bitrot in prototype for mtx_init().
|
#
74932 |
|
28-Mar-2001 |
jhb |
- Both <sys/sx.h> and <sys/mutex.h> depend on <sys/types.h> and <sys/lock.h>. - <sys/sx.h> depends on <sys/mutex.h>.
|
#
72411 |
|
12-Feb-2001 |
ru |
mdoc(7) cleanup.
|
#
72392 |
|
12-Feb-2001 |
bmilekic |
Catch up to mutex API changes.
|
#
71911 |
|
02-Feb-2001 |
jhb |
mtx_try_enter() returns an int, not void.
|
#
71320 |
|
21-Jan-2001 |
jasone |
Remove MUTEX_DECLARE() and MTX_COLD. Instead, postpone full mutex initialization until after malloc() is safe to call, then iterate through all mutexes and complete their initialization.
This change is necessary in order to avoid some circular bootstrapping dependencies.
|
#
70010 |
|
14-Dec-2000 |
ru |
mdoc(7) police: add a missing .Os, change the list type to ``tagged''.
|
#
70001 |
|
13-Dec-2000 |
jhb |
Document the MA_RECURSED and MA_NOTRECURSED assertion flags as well as the MTX_QUIET flag.
|
#
68138 |
|
01-Nov-2000 |
jhb |
Catch up to mutexes becoming MI: machine/mutex.h -> sys/mutex.h
|
#
67996 |
|
30-Oct-2000 |
sheldonh |
Whitespace only:
* Remove hard sentence breaks. * Remove trailing whitespace. * Separate macro arguments from trailing punctuation with whitespace.
|
#
67666 |
|
26-Oct-2000 |
jhb |
- Document MUTEX_DECLARE and MTX_COLD - Clean up some minor nits
|
#
66348 |
|
25-Sep-2000 |
markm |
Huge improvement to the mutex man page.
o Document all the mutex calls, not just the entry and exit.
o Fix the mtx_t typedef (now is struct mtx).
|
#
65557 |
|
07-Sep-2000 |
jasone |
Major update to the way synchronization is done in the kernel. Highlights include:
* Mutual exclusion is used instead of spl*(). See mutex(9). (Note: The alpha port is still in transition and currently uses both.)
* Per-CPU idle processes.
* Interrupts are run in their own separate kernel threads and can be preempted (i386 only).
Partially contributed by: BSDi (BSD/OS) Submissions by (at least): cp, dfr, dillon, grog, jake, jhb, sheldonh
|