Skip to content

Latest commit

 

History

History
71 lines (54 loc) · 3.3 KB

nf-ntddk-kequerygroupaffinity.md

File metadata and controls

71 lines (54 loc) · 3.3 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NF:ntddk.KeQueryGroupAffinity
KeQueryGroupAffinity function (ntddk.h)
The KeQueryGroupAffinity routine returns an affinity mask that identifies the active logical processors in a specified group in a multiprocessor system.
kernel\kequerygroupaffinity.htm
kernel
04/30/2018
KeQueryGroupAffinity function
KeQueryGroupAffinity, KeQueryGroupAffinity routine [Kernel-Mode Driver Architecture], k105_9116eade-e2ed-47f4-a204-c21d456371b0.xml, kernel.kequerygroupaffinity, wdm/KeQueryGroupAffinity
ntddk.h
Wdm.h, Ntddk.h, Ntifs.h
Universal
Available in Windows 7 and later versions of Windows.
NtosKrnl.lib
NtosKrnl.exe
Any level
Windows
KeQueryGroupAffinity
ntddk/KeQueryGroupAffinity
APIRef
kbSyntax
DllExport
NtosKrnl.exe
KeQueryGroupAffinity

KeQueryGroupAffinity function (ntddk.h)

-description

The KeQueryGroupAffinity routine returns an affinity mask that identifies the active logical processors in a specified group in a multiprocessor system.

-parameters

-param GroupNumber [in]

The group number. If a multiprocessor system contains n groups, the groups are numbered from 0 to n-1. To obtain the number of active groups in the system, call the KeQueryActiveGroupCount routine.

-returns

KeQueryGroupAffinity returns a KAFFINITY value that identifies the active logical processors in the specified group. If the GroupNumber parameter value is not a valid group number, the routine returns zero.

-remarks

A related routine, KeQueryActiveProcessors, returns an affinity mask that represents a set of active processors, but this routine, unlike KeQueryGroupAffinity, does not accept a group number as an input parameter. In Windows 7 and later versions of the Windows operating system, KeQueryActiveProcessors returns an affinity mask for the active processors in group 0, which is compatible with the behavior of this routine in earlier versions of Windows that do not support groups. This behavior ensures that existing drivers that call KeQueryActiveProcessors and that use no group-oriented features will run correctly in multiprocessor systems that have two or more groups. However, drivers that use any group-oriented features in Windows 7 and later versions of the Windows operating system should call KeQueryGroupAffinity instead of KeQueryActiveProcessors.

-see-also

KAFFINITY

KeQueryActiveProcessors