ntoskrnl_var.h (125551) | ntoskrnl_var.h (125860) |
---|---|
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 --- 15 unchanged lines hidden (view full) --- 24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 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 * | 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 --- 15 unchanged lines hidden (view full) --- 24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 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 * $FreeBSD: head/sys/compat/ndis/ntoskrnl_var.h 125551 2004-02-07 06:44:13Z wpaul $ | 32 * $FreeBSD: head/sys/compat/ndis/ntoskrnl_var.h 125860 2004-02-16 02:50:03Z wpaul $ |
33 */ 34 35#ifndef _NTOSKRNL_VAR_H_ 36#define _NTOSKRNL_VAR_H_ 37 38/* Note: assumes x86 page size of 4K. */ 39#define PAGE_SHIFT 12 40#define SPAN_PAGES(ptr, len) \ --- 104 unchanged lines hidden (view full) --- 145 b->nle_flink = l; \ 146 } while (0) 147 148#define INSERT_LIST_TAIL(l, e) \ 149 do { \ 150 list_entry *b; \ 151 \ 152 b = l->nle_blink; \ | 33 */ 34 35#ifndef _NTOSKRNL_VAR_H_ 36#define _NTOSKRNL_VAR_H_ 37 38/* Note: assumes x86 page size of 4K. */ 39#define PAGE_SHIFT 12 40#define SPAN_PAGES(ptr, len) \ --- 104 unchanged lines hidden (view full) --- 145 b->nle_flink = l; \ 146 } while (0) 147 148#define INSERT_LIST_TAIL(l, e) \ 149 do { \ 150 list_entry *b; \ 151 \ 152 b = l->nle_blink; \ |
153 e->nle_flink = l \ | 153 e->nle_flink = l; \ |
154 e->nle_blink = b; \ 155 b->nle_flink = e; \ 156 l->nle_blink = e; \ 157 } while (0) 158 159#define INSERT_LIST_HEAD(l, e) \ 160 do { \ 161 list_entry *f; \ --- 98 unchanged lines hidden (view full) --- 260 void *km_ownerthread; 261 uint8_t km_abandoned; 262 uint8_t km_apcdisable; 263 uint32_t km_acquirecnt; 264}; 265 266typedef struct kmutant kmutant; 267 | 154 e->nle_blink = b; \ 155 b->nle_flink = e; \ 156 l->nle_blink = e; \ 157 } while (0) 158 159#define INSERT_LIST_HEAD(l, e) \ 160 do { \ 161 list_entry *f; \ --- 98 unchanged lines hidden (view full) --- 260 void *km_ownerthread; 261 uint8_t km_abandoned; 262 uint8_t km_apcdisable; 263 uint32_t km_acquirecnt; 264}; 265 266typedef struct kmutant kmutant; 267 |
268#define LOOKASIDE_DEPTH 256 269 |
|
268struct general_lookaside { 269 slist_header gl_listhead; 270 uint16_t gl_depth; 271 uint16_t gl_maxdepth; 272 uint32_t gl_totallocs; 273 union { 274 uint32_t gl_allocmisses; 275 uint32_t gl_allochits; --- 173 unchanged lines hidden --- | 270struct general_lookaside { 271 slist_header gl_listhead; 272 uint16_t gl_depth; 273 uint16_t gl_maxdepth; 274 uint32_t gl_totallocs; 275 union { 276 uint32_t gl_allocmisses; 277 uint32_t gl_allochits; --- 173 unchanged lines hidden --- |