ReactOS
0.4.16-dev-981-g80eb313
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
m
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
a
b
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
ndissys.h
Go to the documentation of this file.
1
/*
2
* COPYRIGHT: See COPYING in the top level directory
3
* PROJECT: ReactOS NDIS library
4
* FILE: ndissys.h
5
* PURPOSE: NDIS library definitions
6
* NOTES: Spin lock acquire order:
7
* - Miniport list lock
8
* - Adapter list lock
9
*/
10
#ifndef __NDISSYS_H
11
#define __NDISSYS_H
12
13
#include <
ndis.h
>
14
15
#include "
debug.h
"
16
#include "
miniport.h
"
17
#include "
protocol.h
"
18
#include "
efilter.h
"
19
#include "
buffer.h
"
20
21
/* Exported functions */
22
#ifndef EXPORT
23
#define EXPORT NTAPI
24
#endif
25
26
/* the version of NDIS we claim to be */
27
#define NDIS_VERSION 0x00050001
28
29
#define NDIS_TAG 0x4e4d4953
30
31
#define MIN(value1, value2) \
32
((value1 < value2)? value1 : value2)
33
34
#define MAX(value1, value2) \
35
((value1 > value2)? value1 : value2)
36
37
#define ExInterlockedRemoveEntryList(_List,_Lock) \
38
{ KIRQL OldIrql; \
39
KeAcquireSpinLock(_Lock, &OldIrql); \
40
RemoveEntryList(_List); \
41
KeReleaseSpinLock(_Lock, OldIrql); \
42
}
43
44
/* missing protypes */
45
VOID
46
NTAPI
47
ExGetCurrentProcessorCounts
(
48
PULONG
IdleTime,
49
PULONG
KernelAndUserTime,
50
PULONG
ProcessorNumber);
51
52
VOID
53
NTAPI
54
ExGetCurrentProcessorCpuUsage
(
55
PULONG
CpuUsage);
56
57
/* portability fixes */
58
#ifdef _M_AMD64
59
#define KfReleaseSpinLock KeReleaseSpinLock
60
#define KefAcquireSpinLockAtDpcLevel KeAcquireSpinLockAtDpcLevel
61
#define KefReleaseSpinLockFromDpcLevel KeReleaseSpinLockFromDpcLevel
62
#endif
63
64
#endif
/* __NDISSYS_H */
buffer.h
protocol.h
efilter.h
void
Definition:
nsiface.idl:2307
ndis.h
ExGetCurrentProcessorCounts
VOID NTAPI ExGetCurrentProcessorCounts(PULONG IdleTime, PULONG KernelAndUserTime, PULONG ProcessorNumber)
Definition:
sysinfo.c:345
ExGetCurrentProcessorCpuUsage
VOID NTAPI ExGetCurrentProcessorCpuUsage(PULONG CpuUsage)
Definition:
sysinfo.c:324
miniport.h
PULONG
uint32_t * PULONG
Definition:
typedefs.h:59
NTAPI
#define NTAPI
Definition:
typedefs.h:36
debug.h
drivers
network
ndis
include
ndissys.h
Generated on Wed Apr 16 2025 06:05:58 for ReactOS by
1.9.6