tech-kern archive

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

Error in comment in sys/mutex.h



Currently, there's a long comment in src/sys/sys/mutex.h which reads in part:

...
 *
 *      MUTEX_OWNER(owner)
 *              Returns the owner of the adaptive mutex (LWP address).
 *
 *      MUTEX_OWNED(owner)
 *              Returns non-zero if an adaptive mutex is currently
 *              held by an LWP.
 *
...

It seems to me that the arguments of these two macros should be (mtx) rather than (owner).

Am I misunderstanding something?  Or should I fix it?   :)


+------------------+--------------------------+------------------------+
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:      |
| (Retired)        | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com   |
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd.org |
+------------------+--------------------------+------------------------+


Home | Main Index | Thread Index | Old Index