ReactOS  0.4.14-dev-342-gdc047f9
rtl.h File Reference

Go to the source code of this file.

Functions

NTSTATUS NTAPI RtlQueryAtomListInAtomTable (IN PRTL_ATOM_TABLE AtomTable, IN ULONG MaxAtomCount, OUT ULONG *AtomCount, OUT RTL_ATOM *AtomList)
 
VOID NTAPI RtlInitializeRangeListPackage (VOID)
 

Function Documentation

◆ RtlInitializeRangeListPackage()

VOID NTAPI RtlInitializeRangeListPackage ( VOID  )

Definition at line 58 of file libsupp.c.

59 {
60  /* Setup the lookaside list for allocations (not used yet) */
62  NULL,
63  NULL,
65  sizeof(RTL_RANGE_ENTRY),
66  'elRR',
67  16);
68 }
PAGED_LOOKASIDE_LIST RtlpRangeListEntryLookasideList
Definition: libsupp.c:27
VOID NTAPI ExInitializePagedLookasideList(IN PPAGED_LOOKASIDE_LIST Lookaside, IN PALLOCATE_FUNCTION Allocate OPTIONAL, IN PFREE_FUNCTION Free OPTIONAL, IN ULONG Flags, IN SIZE_T Size, IN ULONG Tag, IN USHORT Depth)
Definition: lookas.c:274
#define POOL_COLD_ALLOCATION
Definition: libsupp.c:21
smooth NULL
Definition: ftsmooth.c:416

Referenced by Phase1InitializationDiscard().

◆ RtlQueryAtomListInAtomTable()

NTSTATUS NTAPI RtlQueryAtomListInAtomTable ( IN PRTL_ATOM_TABLE  AtomTable,
IN ULONG  MaxAtomCount,
OUT ULONG AtomCount,
OUT RTL_ATOM AtomList 
)

Definition at line 704 of file atom.c.

709 {
710  PRTL_ATOM_TABLE_ENTRY *CurrentBucket, *LastBucket;
711  PRTL_ATOM_TABLE_ENTRY CurrentEntry;
712  ULONG Atoms = 0;
714 
715  RtlpLockAtomTable(AtomTable);
716 
717  LastBucket = AtomTable->Buckets + AtomTable->NumberOfBuckets;
718  for (CurrentBucket = AtomTable->Buckets;
719  CurrentBucket != LastBucket;
720  CurrentBucket++)
721  {
722  CurrentEntry = *CurrentBucket;
723 
724  while (CurrentEntry != NULL)
725  {
726  if (MaxAtomCount > 0)
727  {
728  *(AtomList++) = (RTL_ATOM)CurrentEntry->Atom;
729  MaxAtomCount--;
730  }
731  else
732  {
733  /* buffer too small, but don't bail. we need to determine the
734  total number of atoms in the table! */
736  }
737 
738  Atoms++;
739  CurrentEntry = CurrentEntry->HashLink;
740  }
741  }
742 
743  *AtomCount = Atoms;
744 
745  RtlpUnlockAtomTable(AtomTable);
746 
747  return Status;
748 }
Definition: rtltypes.h:1642
unsigned short RTL_ATOM
Definition: atom.c:42
#define STATUS_INFO_LENGTH_MISMATCH
Definition: udferr_usr.h:133
LONG NTSTATUS
Definition: precomp.h:26
USHORT Atom
Definition: rtltypes.h:1646
smooth NULL
Definition: ftsmooth.c:416
VOID RtlpUnlockAtomTable(PRTL_ATOM_TABLE AtomTable)
Definition: libsupp.c:385
Status
Definition: gdiplustypes.h:24
struct _RTL_ATOM_TABLE_ENTRY * HashLink
Definition: rtltypes.h:1644
BOOLEAN RtlpLockAtomTable(PRTL_ATOM_TABLE AtomTable)
Definition: libsupp.c:377
unsigned int ULONG
Definition: retypes.h:1
return STATUS_SUCCESS
Definition: btrfs.c:2938

Referenced by NtQueryInformationAtom().