git: c84a575a1e92 - stable/15 - proc.h: Order thread_lock*() functions more logically
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 19 Nov 2026 15:32:21 UTC
The branch stable/15 has been updated by olce:
URL: https://cgit.FreeBSD.org/src/commit/?id=c84a575a1e9240f12342acbfa5bb28a2503831ec
commit c84a575a1e9240f12342acbfa5bb28a2503831ec
Author: Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2026-11-12 21:54:37 +0000
Commit: Olivier Certner <olce@FreeBSD.org>
CommitDate: 2026-11-19 15:31:56 +0000
proc.h: Order thread_lock*() functions more logically
Also matches the implementation order in 'kern_mutex.c'.
No functional change.
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 3a1f5a28f00770dec7c793a1c44863a824054ade)
---
sys/sys/proc.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index 89a1d791609d..19acf54ffbc3 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -400,9 +400,9 @@ struct thread0_storage {
};
struct mtx *thread_lock_block(struct thread *);
+void thread_lock_unblock(struct thread *, struct mtx *);
void thread_lock_block_wait(struct thread *);
void thread_lock_set(struct thread *, struct mtx *);
-void thread_lock_unblock(struct thread *, struct mtx *);
#define THREAD_LOCK_ASSERT(td, type) \
mtx_assert((td)->td_lock, (type))