subr_ntoskrnl.c (217566) | subr_ntoskrnl.c (218909) |
---|---|
1/*- 2 * Copyright (c) 2003 3 * Bill Paul <wpaul@windriver.com>. 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 --- 17 unchanged lines hidden (view full) --- 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2003 3 * Bill Paul <wpaul@windriver.com>. 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 --- 17 unchanged lines hidden (view full) --- 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/sys/compat/ndis/subr_ntoskrnl.c 217566 2011-01-19 00:57:58Z mdf $"); | 34__FBSDID("$FreeBSD: head/sys/compat/ndis/subr_ntoskrnl.c 218909 2011-02-21 09:01:34Z brucec $"); |
35 36#include <sys/ctype.h> 37#include <sys/unistd.h> 38#include <sys/param.h> 39#include <sys/types.h> 40#include <sys/errno.h> 41#include <sys/systm.h> 42#include <sys/malloc.h> --- 3307 unchanged lines hidden (view full) --- 3350 dh->dh_sigstate = 1; 3351 else { 3352 /* 3353 * Get the first waiter. If this is a synchronization 3354 * event, just wake up that one thread (don't bother 3355 * setting the state to signalled since we're supposed 3356 * to automatically clear synchronization events anyway). 3357 * | 35 36#include <sys/ctype.h> 37#include <sys/unistd.h> 38#include <sys/param.h> 39#include <sys/types.h> 40#include <sys/errno.h> 41#include <sys/systm.h> 42#include <sys/malloc.h> --- 3307 unchanged lines hidden (view full) --- 3350 dh->dh_sigstate = 1; 3351 else { 3352 /* 3353 * Get the first waiter. If this is a synchronization 3354 * event, just wake up that one thread (don't bother 3355 * setting the state to signalled since we're supposed 3356 * to automatically clear synchronization events anyway). 3357 * |
3358 * If it's a notification event, or the the first | 3358 * If it's a notification event, or the first |
3359 * waiter is doing a WAITTYPE_ALL wait, go through 3360 * the full wait satisfaction process. 3361 */ 3362 w = CONTAINING_RECORD(dh->dh_waitlisthead.nle_flink, 3363 wait_block, wb_waitlist); 3364 we = w->wb_ext; 3365 td = we->we_td; 3366 if (kevent->k_header.dh_type == DISP_TYPE_NOTIFICATION_EVENT || --- 1093 unchanged lines hidden --- | 3359 * waiter is doing a WAITTYPE_ALL wait, go through 3360 * the full wait satisfaction process. 3361 */ 3362 w = CONTAINING_RECORD(dh->dh_waitlisthead.nle_flink, 3363 wait_block, wb_waitlist); 3364 we = w->wb_ext; 3365 td = we->we_td; 3366 if (kevent->k_header.dh_type == DISP_TYPE_NOTIFICATION_EVENT || --- 1093 unchanged lines hidden --- |