0

I am currently trying to hook up some kernel threads in a driver to specific NUMA nodes. To do so, I need to query the NUMA node of individual processors.

Unfortunately, GetNumaProcessorNodeEx is not available from a driver (it requires Windows.h). What is the driver equivalent of that function?

Thomas Kejser
  • 1,264
  • 1
  • 10
  • 30

1 Answers1

1

You can call KeQueryLogicalProcessorRelationship and request the RelationNumaNode. This will get you the affinities for every NUMA node in the system.

Brian
  • 2,693
  • 5
  • 26
  • 27