vmlist locking

Tigran Aivazian (tigran@sco.COM)
Thu, 11 Nov 1999 15:45:52 +0000 (GMT)


Hi,

Documentation/vm/locking says that to scan vmlist we can either
use mmap_sem or vmlist_access_lock but both of these are process context
specific. What if I want to scan vmlist regardless of any process, e.g. if
I want to create segments in ELF /proc/kcore based on vmlist elements but
want to make sure that nobody changes the list while I traverse it.

I could go through the process table and do vmlist_access_lock() on
everybody's mm but surely there must be a better way...

Regards,
Tigran.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/