Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Apr 2024 18:19:03 GMT
From:      Mitchell Horne <mhorne@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: e9d06e89ce63 - stable/14 - KASSERT(9): describe history of MPASS
Message-ID:  <202404181819.43IIJ3Uq017554@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by mhorne:

URL: https://cgit.FreeBSD.org/src/commit/?id=e9d06e89ce638ba9b82c37567da29102f8ef0201

commit e9d06e89ce638ba9b82c37567da29102f8ef0201
Author:     Mitchell Horne <mhorne@FreeBSD.org>
AuthorDate: 2024-03-21 15:21:04 +0000
Commit:     Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2024-04-18 18:17:52 +0000

    KASSERT(9): describe history of MPASS
    
    The macro originates from BSD/OS, with a different etymology than what
    is presented. Add a brief HISTORY section to capture this.
    
    Reviewed by:    emaste
    MFC after:      1 week
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D44439
    
    (cherry picked from commit 5d956e11ed3713ff769d51b71f7b4ee6ce0085fe)
---
 share/man/man9/KASSERT.9 | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/share/man/man9/KASSERT.9 b/share/man/man9/KASSERT.9
index 8d9dd98014a8..bab8efe5cfac 100644
--- a/share/man/man9/KASSERT.9
+++ b/share/man/man9/KASSERT.9
@@ -183,6 +183,15 @@ MPASS(td == curthread);
 KASSERT(sz >= SIZE_MIN && sz <= SIZE_MAX,
     ("invalid size argument: %u", sz));
 .Ed
+.Sh HISTORY
+The
+.Nm MPASS
+macro first appeared in
+.Bsx
+and was imported into
+.Fx 5.0 .
+The name originates as an acronym of "multi-processor assert", but has evolved
+to mean "must pass", or "must-pass assert".
 .Sh SEE ALSO
 .Xr panic 9
 .Sh AUTHORS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202404181819.43IIJ3Uq017554>