lkml.org 
[lkml]   [1999]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectvmlist locking
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/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.025 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site