PMEM memory style API in kernel

20 views
Skip to first unread message

Sumit Dighe

unread,
Nov 26, 2019, 12:02:54 PM11/26/19
to pm...@googlegroups.com
Hi,
I want to use some memory style API's of PMEM for block device interface in kernel.
can someone help any doc / source code in linux kernel for this?

Thanks,
Sumit

Sumit Dighe

unread,
Nov 26, 2019, 12:04:38 PM11/26/19
to pm...@googlegroups.com
Primary purpose is to avoid context switch overhead that is there is traditional BIO mechanism on block device.

Thanks,
Sumit
--
*****Sumit*****

Andy Rudoff

unread,
Nov 26, 2019, 12:20:37 PM11/26/19
to pmem
Hi Sumit,

I recommend searching for the driver entry point called "direct_access" in the Linux kernel source.  Notice how file systems that support DAX use that entry point to get direct load/store access to pmem.

Also, reading Documentation/filesystems/dax.txt is probably useful.

-andy

Dan Williams

unread,
Nov 27, 2019, 6:20:12 PM11/27/19
to Sumit Dighe, pmem
On Tue, Nov 26, 2019 at 9:04 AM Sumit Dighe <srdi...@gmail.com> wrote:
>
> Primary purpose is to avoid context switch overhead that is there is traditional BIO mechanism on block device.

DAX already avoids the BIO path. Otherwise, I'm not quite
understanding the question.
Reply all
Reply to author
Forward
0 new messages