ReactOS 0.4.16-dev-833-g4bc97ad
|
#include <ntoskrnl.h>
#include <debug.h>
Go to the source code of this file.
Macros | |
#define | NDEBUG |
#define | SizeOfHandle(x) (sizeof(HANDLE) * (x)) |
#define | INDEX_TO_HANDLE_VALUE(x) ((x) << HANDLE_TAG_BITS) |
#define | strtoulptr strtoul |
Variables | |
LIST_ENTRY | HandleTableListHead |
EX_PUSH_LOCK | HandleTableListLock |
BOOLEAN NTAPI ExChangeHandle | ( | IN PHANDLE_TABLE | HandleTable, |
IN HANDLE | Handle, | ||
IN PEX_CHANGE_HANDLE_CALLBACK | ChangeRoutine, | ||
IN ULONG_PTR | Context | ||
) |
Definition at line 1189 of file handle.c.
Referenced by NtSetInformationObject(), and ObSetHandleAttributes().
HANDLE NTAPI ExCreateHandle | ( | IN PHANDLE_TABLE | HandleTable, |
IN PHANDLE_TABLE_ENTRY | HandleTableEntry | ||
) |
Definition at line 827 of file handle.c.
Referenced by ObDuplicateObject(), ObpCreateHandle(), ObpCreateUnnamedHandle(), PspCreateProcess(), PspCreateThread(), and RtlpCreateAtomHandle().
PHANDLE_TABLE NTAPI ExCreateHandleTable | ( | IN PEPROCESS Process | OPTIONAL | ) |
Definition at line 801 of file handle.c.
Referenced by ObInitProcess(), ObInitSystem(), PspInitPhase0(), and RtlpCreateAtomHandleTable().
BOOLEAN NTAPI ExDestroyHandle | ( | IN PHANDLE_TABLE | HandleTable, |
IN HANDLE | Handle, | ||
IN PHANDLE_TABLE_ENTRY HandleTableEntry | OPTIONAL | ||
) |
Definition at line 984 of file handle.c.
Referenced by ObpCloseHandleTableEntry(), PspDeleteProcess(), PspDeleteThread(), RtlpCloseHandleCallback(), RtlpCreateAtomHandle(), and RtlpFreeAtomHandle().
VOID NTAPI ExDestroyHandleTable | ( | IN PHANDLE_TABLE | HandleTable, |
IN PVOID DestroyHandleProcedure | OPTIONAL | ||
) |
Definition at line 963 of file handle.c.
Referenced by ObKillProcess(), and RtlpDestroyAtomHandleTable().
PHANDLE_TABLE NTAPI ExDupHandleTable | ( | IN PEPROCESS | Process, |
IN PHANDLE_TABLE | HandleTable, | ||
IN PEX_DUPLICATE_HANDLE_CALLBACK | DupHandleProcedure, | ||
IN ULONG_PTR | Mask | ||
) |
Definition at line 1072 of file handle.c.
Referenced by ObInitProcess().
BOOLEAN NTAPI ExEnumHandleTable | ( | IN PHANDLE_TABLE | HandleTable, |
IN PEX_ENUM_HANDLE_CALLBACK | EnumHandleProcedure, | ||
IN OUT PVOID | Context, | ||
OUT PHANDLE EnumHandle | OPTIONAL | ||
) |
Definition at line 1271 of file handle.c.
Referenced by ObFindHandleForObject().
PHANDLE_TABLE_ENTRY NTAPI ExMapHandleToPointer | ( | IN PHANDLE_TABLE | HandleTable, |
IN HANDLE | Handle | ||
) |
Definition at line 1046 of file handle.c.
Referenced by NtWaitForMultipleObjects(), ObpCloseHandle(), ObpReferenceProcessObjectByHandle(), ObQueryObjectAuditingByHandle(), ObReferenceFileObjectForWrite(), ObReferenceObjectByHandle(), PsLookupProcessByProcessId(), PsLookupProcessThreadByCid(), PsLookupThreadByThreadId(), and RtlpGetAtomEntry().
Definition at line 331 of file handle.c.
Referenced by ExCreateHandleTable(), and ExDupHandleTable().
PHANDLE_TABLE_ENTRY NTAPI ExpAllocateHandleTableEntry | ( | IN PHANDLE_TABLE | HandleTable, |
OUT PEXHANDLE | NewHandle | ||
) |
Definition at line 683 of file handle.c.
Referenced by ExCreateHandle().
Definition at line 502 of file handle.c.
Referenced by ExDupHandleTable(), and ExpAllocateHandleTableEntry().
PHANDLE_TABLE_ENTRY NTAPI ExpAllocateLowLevelTable | ( | IN PHANDLE_TABLE | HandleTable, |
IN BOOLEAN | DoInit | ||
) |
Definition at line 430 of file handle.c.
Referenced by ExpAllocateHandleTableEntrySlow(), and ExpAllocateMidLevelTable().
PHANDLE_TABLE_ENTRY *NTAPI ExpAllocateMidLevelTable | ( | IN PHANDLE_TABLE | HandleTable, |
IN BOOLEAN | DoInit, | ||
OUT PHANDLE_TABLE_ENTRY * | LowTableEntry | ||
) |
Definition at line 475 of file handle.c.
Referenced by ExpAllocateHandleTableEntrySlow().
Definition at line 107 of file handle.c.
Referenced by ExpAllocateHandleTableEntrySlow(), and ExpAllocateMidLevelTable().
Definition at line 139 of file handle.c.
Referenced by ExpAllocateHandleTable(), and ExpAllocateLowLevelTable().
VOID NTAPI ExpBlockOnLockedHandleEntry | ( | IN PHANDLE_TABLE | HandleTable, |
IN PHANDLE_TABLE_ENTRY | HandleTableEntry | ||
) |
Definition at line 858 of file handle.c.
Referenced by ExpLockHandleTableEntry().
VOID NTAPI ExpFreeHandleTable | ( | IN PHANDLE_TABLE | HandleTable | ) |
Definition at line 202 of file handle.c.
Referenced by ExDestroyHandleTable(), and ExDupHandleTable().
VOID NTAPI ExpFreeHandleTableEntry | ( | IN PHANDLE_TABLE | HandleTable, |
IN EXHANDLE | Handle, | ||
IN PHANDLE_TABLE_ENTRY | HandleTableEntry | ||
) |
Definition at line 279 of file handle.c.
Referenced by ExDestroyHandle().
Definition at line 183 of file handle.c.
Referenced by ExpFreeHandleTable().
Definition at line 168 of file handle.c.
Referenced by ExpAllocateHandleTableEntrySlow(), ExpAllocateMidLevelTable(), ExpFreeHandleTable(), and ExpFreeLowLevelTable().
Definition at line 34 of file handle.c.
Referenced by ExpInitializeExecutive().
BOOLEAN NTAPI ExpLockHandleTableEntry | ( | IN PHANDLE_TABLE | HandleTable, |
IN PHANDLE_TABLE_ENTRY | HandleTableEntry | ||
) |
Definition at line 884 of file handle.c.
Referenced by ExChangeHandle(), ExDestroyHandle(), ExDupHandleTable(), ExEnumHandleTable(), ExMapHandleToPointer(), ExSweepHandleTable(), and QSI_DEF().
PHANDLE_TABLE_ENTRY NTAPI ExpLookupHandleTableEntry | ( | IN PHANDLE_TABLE | HandleTable, |
IN EXHANDLE | Handle | ||
) |
Definition at line 43 of file handle.c.
Referenced by ExChangeHandle(), ExDestroyHandle(), ExDupHandleTable(), ExEnumHandleTable(), ExMapHandleToPointer(), ExpAllocateHandleTableEntry(), ExpFreeHandleTableEntry(), ExSweepHandleTable(), and QSI_DEF().
ULONG NTAPI ExpMoveFreeHandles | ( | IN PHANDLE_TABLE | HandleTable | ) |
Definition at line 648 of file handle.c.
Referenced by ExpAllocateHandleTableEntry().
VOID NTAPI ExRemoveHandleTable | ( | IN PHANDLE_TABLE | HandleTable | ) |
Definition at line 944 of file handle.c.
Referenced by ExDestroyHandleTable().
VOID NTAPI ExSweepHandleTable | ( | IN PHANDLE_TABLE | HandleTable, |
IN PEX_SWEEP_HANDLE_CALLBACK | EnumHandleProcedure, | ||
IN PVOID | Context | ||
) |
Definition at line 1232 of file handle.c.
Referenced by ObClearProcessHandleTable(), ObKillProcess(), and RtlpDestroyAtomHandleTable().
VOID NTAPI ExUnlockHandleTableEntry | ( | IN PHANDLE_TABLE | HandleTable, |
IN PHANDLE_TABLE_ENTRY | HandleTableEntry | ||
) |
Definition at line 923 of file handle.c.
Referenced by ExChangeHandle(), ExCreateHandle(), ExEnumHandleTable(), NtWaitForMultipleObjects(), ObpCloseHandleTableEntry(), ObpDuplicateHandleCallback(), ObpReferenceProcessObjectByHandle(), ObQueryObjectAuditingByHandle(), ObReferenceFileObjectForWrite(), ObReferenceObjectByHandle(), PsLookupProcessByProcessId(), PsLookupProcessThreadByCid(), PsLookupThreadByThreadId(), QSI_DEF(), and RtlpGetAtomEntry().
LIST_ENTRY HandleTableListHead |
Definition at line 18 of file handle.c.
Referenced by ExCreateHandleTable(), ExDupHandleTable(), ExpInitializeHandleTables(), and QSI_DEF().
EX_PUSH_LOCK HandleTableListLock |
Definition at line 19 of file handle.c.
Referenced by ExCreateHandleTable(), ExDupHandleTable(), ExpInitializeHandleTables(), ExRemoveHandleTable(), and QSI_DEF().