I have come across the following post which concludes reading of a variable, which is being managed atomically for write, need not be atomic:
But, suppose there is a variable in a structure which is n (n < x/8 on a x bit architecture machine) byte aligned and the memory access might take more than one cycle..
Am I missing something, such as no such alignment possible with such APIs, which is already understood ? ..
I believe this is a trivial stuff for experienced developers but for me as I see no such word as alignment can be found in the following links..:
I have come across some relevant information here:
But it also apparently does not talk about the case if the value of n is not an even number.
Note: Even though URL  is almost a decade old, still it was the most relevant for the discussion which I could find in my limited search. Also I am not sure if there were any furthere updated discussions in the context of main URL .
It looks like you're new here. If you want to get involved, click one of these buttons!
|Upcoming OSR Seminars|
|Developing Minifilters||29 July 2019||OSR Seminar Space|
|Writing WDF Drivers||23 Sept 2019||OSR Seminar Space|
|Kernel Debugging||21 Oct 2019||OSR Seminar Space|
|Internals & Software Drivers||18 Nov 2019||Dulles, VA|