• Ross Zwisler's avatar
    pmem: add copy_from_iter_pmem() and clear_pmem() · 5de490da
    Ross Zwisler authored
    Add support for two new PMEM APIs, copy_from_iter_pmem() and
    clear_pmem().  copy_from_iter_pmem() is used to copy data from an
    iterator into a PMEM buffer.  clear_pmem() zeros a PMEM memory range.
    
    Both of these new APIs must be explicitly ordered using a wmb_pmem()
    function call and are implemented in such a way that the wmb_pmem()
    will make the stores to PMEM durable.  Because both APIs are unordered
    they can be called as needed without introducing any unwanted memory
    barriers.
    Signed-off-by: default avatarRoss Zwisler <ross.zwisler@linux.intel.com>
    Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
    5de490da
pmem.h 4.6 KB