[2/3] ntdll: Implement NtQuerySystemInformation/SystemLogicalProcessorInformation (try 6)

Rudolf Mayerhofer rm at eightyfive.net
Fri Oct 8 13:22:27 CDT 2010


Try 2:
- Exchange Patches #2 and #3.
- Fix errors in formatting
- Check that fopen succeeds, return default value otherwise
- default return value is now 0 for all parser functions

Try 3:
- Add missing checks for valid processor mask and cache values

Try 4:
- More comments in the parsing code
- Some additional code cleanup

Try 5:
- Update code for adding new elements to cached_lpi to make it easier to 
understand (the first empty processormask is always at index 
cached_lpi_elementcount).

Try 6:
Removed sysfs_*_exists checks since they were rejected in try 5 and 
replaced them with the following assumptions:
- A CPU exists when file /sys/devices/system/cpu/cpuN/topology/thead_siblings exists and 
  at least one bit is set in the mask (processormask > 0)
- A CPU cache exists when file /sys/devices/system/cpu/cpuN/cache/indexM/shared_cpu_map
 exists and at least one bit is set in the mask (processormask > 0)
- A Numa node exists when /sys/devices/system/node/nodeN/cpumap exists and
 at least one bit is set in the mask (processormask > 0)

---
 dlls/ntdll/nt.c |  294 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 294 insertions(+), 0 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-2-3-ntdll-Implement-NtQuerySystemInformation-SystemLog.txt
Type: text/x-patch
Size: 12658 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20101008/ee469f86/attachment-0001.bin>


More information about the wine-patches mailing list