1 // SPDX-License-Identifier: GPL-2.0 1 2 // Copyright (C) 2018 Hangzhou C-SKY Microsyst 3 4 #include <linux/export.h> 5 #include <linux/mm.h> 6 #include <linux/io.h> 7 8 pgprot_t phys_mem_access_prot(struct file *fil 9 unsigned long si 10 { 11 if (!pfn_valid(pfn)) { 12 return pgprot_noncached(vma_pr 13 } else if (file->f_flags & O_SYNC) { 14 return pgprot_writecombine(vma 15 } 16 17 return vma_prot; 18 } 19 EXPORT_SYMBOL(phys_mem_access_prot); 20
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.