From: mike@flyn.org (W. Michael Petullo)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Walk list of processes attached to a shared page
Date: Thu, 18 Feb 2016 13:05:08 -0500 [thread overview]
Message-ID: <20160218180508.GA32559@imp.flyn.org> (raw)
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
reply other threads:[~2016-02-18 18:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160218180508.GA32559@imp.flyn.org \
--to=mike@flyn.org \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).