a_struct.pmem_i; // the type is, wait for it, int* volatile (the pointer is volatile not the object it is pointing to) The second line is a very important point to keep in mind when declaring structs.
Kernel code has to handle volatile data, but if you see the C keyword "volatile" in the kernel, it's a mistake. Here's why Kernel code has to handle volatile data, but if you see the C keyword ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results