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

Re: MMIO regions



On Mon, 4 Oct 1999, James Simmons wrote:

> And if the process holding the locks dies then no other process can access
> this resource. Also if the program forgets to release the lock you end up
> with other process never being able to access this piece of hardware.   

Eh?  That's simply not true -- it's easy enough to handle via a couple of
different means: in the release fop or munmap which both get called on
termination of a task.  Or in userspace from the SIGCHLD to the parent, or
if you're really paranoid, you can save the pid in an owner field in the
lock and periodically check that the process is still there.

		-ben

--
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/