From: ydroneaud@opteya.com (Yann Droneaud)
To: kernelnewbies@lists.kernelnewbies.org
Subject: UIO Devices and user processes
Date: Tue, 06 Oct 2015 15:58:55 +0200 [thread overview]
Message-ID: <1444139935.3188.43.camel@opteya.com> (raw)
In-Reply-To: <CAK7rcp_9CxqsEHhTW6Xjyp38ir5KbeRPMYuPQoPYGcrerVWLvQ@mail.gmail.com>
Le mardi 06 octobre 2015 ? 09:26 -0400, Kenneth Adam Miller a ?crit :
> Any body know about the issue of assigning a process a region of
> physical memory to use for it's malloc and free? I'd like to just
> have the process call through to a UIO driver with an ioctl, and then
> once that's done it gets all it's memory from a specific region.
>
You mean CONFIG_UIO_DMEM_GENIRQ (drivers/uio/uio_dmem_genirq.c)
See:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=0a0c3b5a24bd802b1ebbf99e0b01296647b8199b
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=b533a83008c3fb4983c1213276790cacd39b518f
https://www.kernel.org/doc/htmldocs/uio-howto/using-uio_dmem_genirq.html
PS: please don't top post reply as it makes it difficult to parse the
discussion.
> On Tue, Oct 6, 2015 at 1:21 AM, Greg KH <greg@kroah.com> wrote:
> > On Mon, Oct 05, 2015 at 07:07:51PM -0400, Kenneth Adam Miller
> > wrote:
> > > So, I'm reading about UIO devices and user processes for mapping
> > memory into
> > > userland, and basically I have just a couple questions:
> > >
> > > What happens when a userland processes has allocated some
> > resource from a
> > > driver that is facilitating UIO, but then subsequently crashes?
> > I'd like to
> > > know that the driver can (or how you would enable such) recover
> > the resources
> > > so that the next user process can acquire them, instead of them
> > being lost.
> >
> > Have you tried this? All of your resources should be freed
> > properly, if
> > not, let the uio maintainers know.
> >
> > thanks,
> >
Regards.
--
Yann Droneaud
OPTEYA
next prev parent reply other threads:[~2015-10-06 13:58 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-05 23:07 UIO Devices and user processes Kenneth Adam Miller
2015-10-06 5:21 ` Greg KH
2015-10-06 13:26 ` Kenneth Adam Miller
2015-10-06 13:57 ` Greg KH
2015-10-06 14:03 ` Kenneth Adam Miller
2015-10-06 13:58 ` Yann Droneaud [this message]
2015-10-06 14:13 ` Kenneth Adam Miller
2015-10-06 14:32 ` Yann Droneaud
2015-10-06 14:41 ` Kenneth Adam Miller
2015-10-06 14:46 ` Kenneth Adam Miller
2015-10-06 15:04 ` Yann Droneaud
2015-10-06 15:10 ` Kenneth Adam Miller
2015-10-07 17:02 ` Greg KH
2015-10-07 18:10 ` Kenneth Adam Miller
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=1444139935.3188.43.camel@opteya.com \
--to=ydroneaud@opteya.com \
--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).