#ifndef _NTRTL_H
#define RtlIsRoot(Links) ((RtlParent(Links) == (PRTL_SPLAY_LINKS)(Links)))
View code on GitHub// ntddk.h
void RtlIsRoot(
[in] Links
);
View the official Windows Driver Kit DDI referenceThis macro is documented in Windows Driver Kit.
The RtlIsRoot routine determines whether the specified node is the root node of a splay link tree.
Links [in]Pointer to the node. The node must have been initialized by calling RtlInitializeSplayLinks.
RtlIsRoot returns TRUE if the node at Links has no parent node, FALSE otherwise.
Callers of the Rtl splay link routines are responsible for synchronizing access to the splay link tree. A fast mutex is the most efficient synchronization mechanism to use for this purpose.
Callers of RtlIsRoot must be running at IRQL <= DISPATCH_LEVEL if the splay link tree or just-initialized node at Links is nonpaged. Usually, callers are running at IRQL PASSIVE_LEVEL.