summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_mutex.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2003-07-31 18:50:58 +0000
committerjhb <jhb@FreeBSD.org>2003-07-31 18:50:58 +0000
commita3b9c0d55345861352cfe71080a09693ff39682f (patch)
tree9af0a80a9c1231f3bf512b69e06a13cb6affaa6d /sys/kern/kern_mutex.c
parentcc461cb6e3210c65f97f97566f6d0cf18b98f870 (diff)
downloadFreeBSD-src-a3b9c0d55345861352cfe71080a09693ff39682f.zip
FreeBSD-src-a3b9c0d55345861352cfe71080a09693ff39682f.tar.gz
Add a new function to look for a spinlock's instance when it is held by
another thread. We use the td_oncpu member of the other field to locate it's associated CPU and then search the that CPU's list of spin locks contained in its per-CPU data. This is not always safe and may in fact panic or just not work, but it is useful in at least one case.
Diffstat (limited to 'sys/kern/kern_mutex.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud