]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add witness_is_owned(9)
authorKonstantin Belousov <kib@FreeBSD.org>
Mon, 10 Apr 2023 15:54:58 +0000 (18:54 +0300)
committerKonstantin Belousov <kib@FreeBSD.org>
Tue, 11 Apr 2023 12:59:49 +0000 (15:59 +0300)
commit75fc6f86c38807f1fb305c065c6affcf7617b029
tree526be7d3b38527675dbe2e47aa3f31d938015ac6
parentafa8f8971b869b8b5d1468e431d18c615a35a63e
Add witness_is_owned(9)

which returns an indicator if the current thread owns the specified
lock.

Reviewed by: jah, markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D39477
sys/kern/subr_witness.c
sys/sys/lock.h