Bewerken

Delen via


NdisInterlockedPopEntrySList macro (ndis.h)

The NdisInterlockedPopEntrySList function removes the first entry from a sequenced, singly linked list.

Syntax

void NdisInterlockedPopEntrySList(
        SListHead,
  [in]  Lock
);

Parameters

SListHead

A pointer to the head of the already initialized sequenced, singly linked list from which the entry is to be returned.

[in] Lock

A pointer to a caller-supplied spin lock, not currently held by the caller.

Return value

None

Remarks

A driver must not be holding the given Lock when it calls NdisInterlockedPopEntrySList. If necessary, the driver should call the NdisReleaseSpinLock function before making this call. NdisInterlockedPopEntrySList itself must acquire this spin lock to remove the first entry in the S-List, if any, in a multiprocessor-safe way.

The caller must provide resident storage for the Lock, which must be initialized with the NdisAllocateSpinLock function before the initial call to any NdisInterlocked..SList function.

If NdisInterlockedPopEntrySList is called at IRQL >= DISPATCH_LEVEL, the storage for the ListHead parameter must be resident.

Requirements

Requirement Value
Minimum supported client Supported for NDIS 6.0 and NDIS 5.1 drivers (see NdisInterlockedPopEntrySList (NDIS 5.1)) in Windows Vista. Supported for NDIS 5.1 drivers (see NdisInterlockedPopEntrySList (NDIS 5.1)) in Windows XP.
Target Platform Desktop
Header ndis.h (include Ndis.h)
IRQL Any level

See also

NdisAllocateSpinLock

NdisFreeSpinLock

NdisInitializeSListHead

NdisInterlockedPushEntrySList

NdisQueryDepthSList

NdisReleaseSpinLock