IopGetNumaNodeInformation
NTSTATUS __stdcall IopGetNumaNodeInformation(
_FILE_OBJECT *FileObject,
_FILE_PROCESS_IDS_USING_FILE_INFORMATION *Puffer,
UINT64 PufferLength,
UINT64 *OutputSize){
_DEVICE_OBJECT *DeviceObject;
_DEVICE_OBJECT *DevicePDO;
_ADAPTER_OBJECT *v7;
int DeviceNumaNode;
USHORT NodeNumber;
DeviceObject = FileObject->DeviceObject;
NodeNumber = 0;
DevicePDO = IopGetDevicePDO(DeviceObject);
v7 = (_ADAPTER_OBJECT *)DevicePDO;
if( !DevicePDO )
return -1073741810;
DeviceNumaNode = IoGetDeviceNumaNode(DevicePDO, &NodeNumber);
HalPutDmaAdapter(v7);
if( DeviceNumaNode >= 0 )
LOWORD(Puffer->NumberOfProcessIdsInList) = NodeNumber;
return DeviceNumaNode;
}Referenced by:
NtQueryInformationFile