Message 2 of 3
09 Feb 18 18:54
Join Date: 23 Feb 2011
Posts To This List: 1406
Since Windows requires Little Endian you should be fine without the call.
Windows Driver Consulting
[mailto:email@example.com] On Behalf Of firstname.lastname@example.org
Sent: Friday, February 09, 2018 6:40 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] le32_to_cpu() required?
I read data from the SAS controller chip in my Windows7 driver. When I
examine the values of the data that is read from the chip on Windbg watch
window and compare it with the Linux "dmesg" command output for the same
controller card, the values match.
But in the Linux driver code for this controller, when they read the data
from the chip, for some values, they use le32_to_cpu before it is saved onto
variables in the kernel space.
Both my Windows driver and the Linux driver are meant to be loaded on x86
So, in my Win 7 driver, do I have to convert the endianness of the value
read from the chip before saving to kernel variables ?
NTDEV is sponsored by OSR
Visit the list online at:
MONTHLY seminars on crash dump analysis, WDF, Windows internals and software
To unsubscribe, visit the List Server section of OSR Online at