kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Identify tasks which mmap'ed file
@ 2016-05-26  4:28 W. Michael Petullo
  0 siblings, 0 replies; only message in thread
From: W. Michael Petullo @ 2016-05-26  4:28 UTC (permalink / raw)
  To: kernelnewbies

Within the kernel and given a struct file *, is it possible to enumerate
the tasks which have mmap/MAP_SHARED'ed the file? I have tried to use
find_get_pages/rmap_walk on the file's f_mapping field, but this does
not seem to work. I find the mapping's first page with find_get_pages,
but rmap_walk does not seem to find any vma's as rmap_walk never calls
the callback function I pass in.

Thank you,

-- 
Mike

:wq

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-05-26  4:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-26  4:28 Identify tasks which mmap'ed file W. Michael Petullo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).