sleepqueue.h (166908) | sleepqueue.h (167387) |
---|---|
1/*- 2 * Copyright (c) 2004 John Baldwin <jhb@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * | 1/*- 2 * Copyright (c) 2004 John Baldwin <jhb@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * |
29 * $FreeBSD: head/sys/sys/sleepqueue.h 166908 2007-02-23 16:22:09Z jhb $ | 29 * $FreeBSD: head/sys/sys/sleepqueue.h 167387 2007-03-09 22:41:01Z jhb $ |
30 */ 31 32#ifndef _SYS_SLEEPQUEUE_H_ 33#define _SYS_SLEEPQUEUE_H_ 34 35/* 36 * Sleep queue interface. Sleep/wakeup and condition variables use a sleep 37 * queue for the queue of threads blocked on a sleep channel. --- 39 unchanged lines hidden (view full) --- 77 78struct lock_object; 79struct sleepqueue; 80struct thread; 81 82#ifdef _KERNEL 83 84#define SLEEPQ_TYPE 0x0ff /* Mask of sleep queue types. */ | 30 */ 31 32#ifndef _SYS_SLEEPQUEUE_H_ 33#define _SYS_SLEEPQUEUE_H_ 34 35/* 36 * Sleep queue interface. Sleep/wakeup and condition variables use a sleep 37 * queue for the queue of threads blocked on a sleep channel. --- 39 unchanged lines hidden (view full) --- 77 78struct lock_object; 79struct sleepqueue; 80struct thread; 81 82#ifdef _KERNEL 83 84#define SLEEPQ_TYPE 0x0ff /* Mask of sleep queue types. */ |
85#define SLEEPQ_MSLEEP 0x00 /* Used by msleep/wakeup. */ | 85#define SLEEPQ_SLEEP 0x00 /* Used by sleep/wakeup. */ |
86#define SLEEPQ_CONDVAR 0x01 /* Used for a cv. */ 87#define SLEEPQ_PAUSE 0x02 /* Used by pause. */ 88#define SLEEPQ_INTERRUPTIBLE 0x100 /* Sleep is interruptible. */ 89 90void init_sleepqueues(void); 91void sleepq_abort(struct thread *td, int intrval); 92void sleepq_add(void *wchan, struct lock_object *lock, const char *wmesg, 93 int flags, int queue); --- 16 unchanged lines hidden --- | 86#define SLEEPQ_CONDVAR 0x01 /* Used for a cv. */ 87#define SLEEPQ_PAUSE 0x02 /* Used by pause. */ 88#define SLEEPQ_INTERRUPTIBLE 0x100 /* Sleep is interruptible. */ 89 90void init_sleepqueues(void); 91void sleepq_abort(struct thread *td, int intrval); 92void sleepq_add(void *wchan, struct lock_object *lock, const char *wmesg, 93 int flags, int queue); --- 16 unchanged lines hidden --- |