[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mm->mmap_sem



Hi,

On Sat, 25 Sep 1999 12:50:57 -0400 (EDT), James Simmons
<jsimmons@edgeglobal.com> said:

> Is their any way to do cooperative locking kernel side between two
> memory regions? If one is being access you can't physically access the
> other. I just want to process to sleep not kill it if it attempts
> this.

Sure.  You can always use a semaphore or spinlock to do cooperative
locking.  Physically preventing the access is what is expensive (far,
far, far too expensive to be worthwhile doing it frequently if your
driver requires that).

--Stephen
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/