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

     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%whooppee.com@localhost   |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette%juniper.net@localhost |
----------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index