summaryrefslogtreecommitdiffstats
path: root/sys/kern/sys_generic.c
diff options
context:
space:
mode:
authormckusick <mckusick@FreeBSD.org>2002-01-12 20:57:36 +0000
committermckusick <mckusick@FreeBSD.org>2002-01-12 20:57:36 +0000
commitc6e526cffc373bd730b48c61cb3e36af675ee7ae (patch)
tree48f788593ada3fbbe36cc6b9836d6182002f5d25 /sys/kern/sys_generic.c
parent08d40edb03cc948c5f3c599c70ad2ed8ee42db56 (diff)
downloadFreeBSD-src-c6e526cffc373bd730b48c61cb3e36af675ee7ae.zip
FreeBSD-src-c6e526cffc373bd730b48c61cb3e36af675ee7ae.tar.gz
When going to sleep, we must save our SPL so that it does not get
lost if some other process uses the lock while we are sleeping. We restore it after we have slept. This functionality is provided by a new routine interlocked_sleep() that wraps the interlocking with functions that sleep. This function is then used in place of the old ACQUIRE_LOCK_INTERLOCKED() and FREE_LOCK_INTERLOCKED() macros. Submitted by: Debbie Chu <dchu@juniper.net>
Diffstat (limited to 'sys/kern/sys_generic.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud