Click to Rate and Give Feedback
MSDN
MSDN Library
Windows Driver Kit
Reference
 KeRevertToUserAffinityThreadEx

  Switch on low bandwidth view
Windows Driver Kit: Kernel-Mode Driver Architecture
KeRevertToUserAffinityThreadEx

The KeRevertToUserAffinityThreadEx routine returns the thread to the previous system affinity.

VOID
  KeRevertToUserAffinityThreadEx(
    IN KAFFINITY  Affinity
    );

Parameters

Affinity
A KAFFINITY-typed variable that receives a bitmap that represents the set of currently active processors. Note that in a hot-add environment, the set of active processors might change during run time.This value should be obtained from the return value of KeSetSystemAffinityThreadEx

Return Value

None

Comments

KeRevertToUserAffinityThreadEx sets the affinity value of the thread if the Affinity value is nonzero. Otherwise, the original user affinity is restored.

Requirements

Versions: Available on Windows Vista and later versions of the Windows operating system.

IRQL: <=DISPATCH_LEVEL

Headers: Declared in Wdm.h. Include Wdm.h.

See Also

KAFFINITY, KeSetSystemAffinityThreadEx


Send feedback on this topic
Built on May 20, 2009
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker