* Walk list of processes attached to a shared page
@ 2016-02-18 18:05 W. Michael Petullo
0 siblings, 0 replies; only message in thread
From: W. Michael Petullo @ 2016-02-18 18:05 UTC (permalink / raw)
To: kernelnewbies
Is it possible to walk the processes already attached to a shared page
in an implementation of security_shm_shmat()?
I have a function:
static int my_shm_shmat(struct shmid_kernel *shp, char __user *shmaddr,
int shmflag)
and I would like to find the processes already attached.
It seems like rmap_walk() would help, but I cannot figure out how to
get an appropriate struct page out of a struct shmid_kernel or unmapped
address (i.e., shmaddr above).
--
Mike
:wq
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-02-18 18:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-18 18:05 Walk list of processes attached to a shared page 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).