Expand Minimize

FirstEntrySList routine

The FirstEntrySList routine returns the first entry in a sequenced singly linked list.

Syntax


PSLIST_ENTRY FirstEntrySList(
  _In_  PSLIST_HEADER SListHead
);

Parameters

SListHead [in]

Pointer to the SLIST_HEADER structure that serves as the header for the sequenced singly linked list.

Return value

FirstEntrySList returns a pointer to the first SLIST_ENTRY structure on the list. If the list is empty, the routine returns NULL.

Remarks

Unlike other sequenced singly linked list routines, the FirstEntrySList routine is not atomic. For more information about sequenced singly linked lists, see Sequenced Singly Linked Lists. Callers of this routine can run at any level. If called at IRQL >= DISPATCH_LEVEL, the storage for ListHead must be resident.

Requirements

Header

Wdm.h (include Wdm.h, Ntifs.h, or Ntddk.h)

Library

Ntoskrnl.lib

IRQL

Any level

See also

SLIST_ENTRY
SLIST_HEADER

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft