RtlIsRightChild - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTRTL_H

#define RtlIsRightChild(Links) ((RtlRightChild(RtlParent(Links)) == (PRTL_SPLAY_LINKS)(Links)))

#endif

View code on GitHub
// ntddk.h

void RtlIsRightChild(
  [in] Links
);
View the official Windows Driver Kit DDI reference

NtDoc

This macro is documented in Windows Driver Kit.

Windows Driver Kit DDI reference (nf-ntddk-rtlisrightchild)

RtlIsRightChild macro

Description

The RtlIsRightChild routine determines whether a given splay link is the right child of a node in a splay link tree.

Parameters

Pointer to the node. The node must have been initialized by calling RtlInitializeSplayLinks.

Remarks

RtlIsRightChild returns TRUE if the given node at Links is the right child of its parent node, FALSE otherwise.

The given node at Links must have a parent node in the tree. A caller can determine whether this node has a parent with RtlIsRoot. If RtlIsRoot returns FALSE, Links is a valid parameter to RtlIsRightChild.

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 RtlIsRightChild can be running at IRQL <= DISPATCH_LEVEL if the splay link tree is nonpaged. Usually, callers are running at IRQL PASSIVE_LEVEL.

See also

RtlInitializeSplayLinks

RtlIsLeftChild

RtlIsRoot

RtlRightChild

RtlSplay