kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: greg@kroah.com (Greg KH)
To: kernelnewbies@lists.kernelnewbies.org
Subject: UIO Devices and user processes
Date: Wed, 7 Oct 2015 18:02:15 +0100	[thread overview]
Message-ID: <20151007170215.GA26439@kroah.com> (raw)
In-Reply-To: <CAK7rcp9Rxp8cF8DkH8zYXY54Ckb6aZMyQ7UA9Uh2kZQBx57htA@mail.gmail.com>

On Tue, Oct 06, 2015 at 10:46:49AM -0400, Kenneth Adam Miller wrote:
> Let me be more precise in general to the overall original question:
> 
> I want a userland process that I designate to only use a specific hard coded
> region physical of memory for it's heap. A UIO driver is the means by which
> I've gone about seeking to achieve this.?

Use LD_PRELOAD to hook into your custom library that handles the
allocation to this special portion of memory that you grabbed from the
hardware using the UIO kernel interface instead of the "normal" libc
allocator, and you will be fine.  But you will have to write a custom
allocator, there's no other way around that.

The kernel gives you the ability to do this today, no kernel changes
needed, it's all "just" userspace code you will have to do on your own.

Best of luck, that's going to be some "fun" work :)

greg k-h

  parent reply	other threads:[~2015-10-07 17:02 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
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 [this message]
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=20151007170215.GA26439@kroah.com \
    --to=greg@kroah.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).