Alessandro Pistocchi <apukbusin...@gmail.com> wrote:

> During the syscall I allocate some memory that I want to share between the
> kernel and the calling process.
When you get the mapping working, it will not work as well as you like.

Compiler re-ordering of writes & reads, caches, write buffers, and other
details such as non-TSO will creat problems, meaning you'll need very careful
data-structure, and great care with co-dependent fields, otherwise one side
can fool the other.

That is why the copyin/copyout approach is used as a high-level 
serializing-forcing
primitive in most operating systems.

But since you don't show your whole diff.. I suspect this is a waste of time.

Reply via email to