tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Conflicting mutex(9) man page ?

Man page for mutex(9) says


           Release a mutex.  The mutex must have been previously
           acquired by the caller.  Mutexes may be released out of order
           as needed.



           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

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 |   |
| Network Engineer | 0786 F758 55DE 53BA 7731 | |

Home | Main Index | Thread Index | Old Index