From: Dave Hansen <dave.hansen@intel.com>
To: Yehuda Yitschak <yehuday@marvell.com>,
"linux-mm@kvack.org" <linux-mm@kvack.org>
Cc: Shadi Ammouri <shadi@marvell.com>
Subject: Re: [QUESTION] mmap of device file with huge pages
Date: Wed, 10 Aug 2016 09:20:00 -0700 [thread overview]
Message-ID: <57AB5430.5000305@intel.com> (raw)
In-Reply-To: <ca84d8e02a0942c39ad0da01a1fe43f1@IL-EXCH02.marvell.com>
On 08/10/2016 12:36 AM, Yehuda Yitschak wrote:
>>> But, the thing I generally suggest is that you
>>> allocate hugetlbfs memory or anonymous transparent huge pages in
>>> your applciation via the _normal_ mechanisms, and then hand a
>>> pointer to that in to your driver.
> Thanks. I can try that. Once I hand the pointer to the driver, is
> there a standard API to map user-space memory to kernel space.
Yes. It's probably worth reading:
http://www.oreilly.com/openbook/linuxdrive3/book/ch15.pdf
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
prev parent reply other threads:[~2016-08-10 16:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-09 9:58 [QUESTION] mmap of device file with huge pages Yehuda Yitschak
2016-08-09 17:39 ` Dave Hansen
2016-08-10 7:36 ` Yehuda Yitschak
2016-08-10 16:20 ` Dave Hansen [this message]
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=57AB5430.5000305@intel.com \
--to=dave.hansen@intel.com \
--cc=linux-mm@kvack.org \
--cc=shadi@marvell.com \
--cc=yehuday@marvell.com \
/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).