| Subject: | Conflicting mutex(9) man page ? |
|---|---|
| From: | Paul Goyette <paul@xxxxxxxxxxxx> |
| Date: | Sat, 19 Jul 2008 15:25:07 UTC |
| Newsgroups: | fa.netbsd.tech.kern |
Man page for mutex(9) says
mutex_exit(mtx)
Release a mutex. The mutex must have been previously
acquired by the caller. Mutexes may be released out of order
as needed.
...
mutex_spin_exit(mtx)
Equivalent to mutex_exit(), but may only be used when it is
known that mtx is a spin mutex. On some architectures, this
can substantially reduce the cost of releasing an unheld spin
mutex.
The conflict:
If mutex_exit() requires that "the mutex must have been previously
acquired by the caller", how can mutex_spin_exit() succeed when
"releasing an unheld spin mutex"?
---------------------------------------------------------------------- | Paul Goyette | PGP DSS Key fingerprint: | E-mail addresses: | | Customer Service | FA29 0E3B 35AF E8AE 6651 | paul@xxxxxxxxxxxx | | Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette@xxxxxxxxxxx | ---------------------------------------------------------------------- |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Lining the kernel (Was: __dead functions), David Holland |
|---|---|
| Next by Date: | Re: Conflicting mutex(9) man page ?, Mindaugas Rasiukevicius |
| Previous by Thread: | Lining the kernel (Was: __dead functions), Valeriy E. Ushakov |
| Next by Thread: | Re: Conflicting mutex(9) man page ?, Mindaugas Rasiukevicius |
| Indexes: | [Date] [Thread] [Top] [All Lists] |