cregit-Linux how code gets into the kernel

Release 4.18 arch/powerpc/lib/pmem.c

Directory: arch/powerpc/lib
/*
 * Copyright(c) 2017 IBM Corporation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of version 2 of the GNU General Public License as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 */

#include <linux/string.h>
#include <linux/export.h>
#include <linux/uaccess.h>

#include <asm/cacheflush.h>

/*
 * CONFIG_ARCH_HAS_PMEM_API symbols
 */

void arch_wb_cache_pmem(void *addr, size_t size) { unsigned long start = (unsigned long) addr; flush_inval_dcache_range(start, start + size); }

Contributors

PersonTokensPropCommitsCommitProp
Oliver O'Halloran31100.00%1100.00%
Total31100.00%1100.00%

EXPORT_SYMBOL(arch_wb_cache_pmem);
void arch_invalidate_pmem(void *addr, size_t size) { unsigned long start = (unsigned long) addr; flush_inval_dcache_range(start, start + size); }

Contributors

PersonTokensPropCommitsCommitProp
Oliver O'Halloran31100.00%1100.00%
Total31100.00%1100.00%

EXPORT_SYMBOL(arch_invalidate_pmem); /* * CONFIG_ARCH_HAS_UACCESS_FLUSHCACHE symbols */
long __copy_from_user_flushcache(void *dest, const void __user *src, unsigned size) { unsigned long copied, start = (unsigned long) dest; copied = __copy_from_user(dest, src, size); flush_inval_dcache_range(start, start + size); return copied; }

Contributors

PersonTokensPropCommitsCommitProp
Oliver O'Halloran53100.00%1100.00%
Total53100.00%1100.00%


void *memcpy_flushcache(void *dest, const void *src, size_t size) { unsigned long start = (unsigned long) dest; memcpy(dest, src, size); flush_inval_dcache_range(start, start + size); return dest; }

Contributors

PersonTokensPropCommitsCommitProp
Oliver O'Halloran49100.00%1100.00%
Total49100.00%1100.00%

EXPORT_SYMBOL(memcpy_flushcache);
void memcpy_page_flushcache(char *to, struct page *page, size_t offset, size_t len) { memcpy_flushcache(to, page_to_virt(page) + offset, len); }

Contributors

PersonTokensPropCommitsCommitProp
Oliver O'Halloran34100.00%1100.00%
Total34100.00%1100.00%

EXPORT_SYMBOL(memcpy_page_flushcache);

Overall Contributors

PersonTokensPropCommitsCommitProp
Oliver O'Halloran233100.00%2100.00%
Total233100.00%2100.00%
Directory: arch/powerpc/lib
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.