cregit-Linux how code gets into the kernel

Release 4.14 arch/mips/mm/pgtable.c

Directory: arch/mips/mm
/*
 * This file is subject to the terms and conditions of the GNU General Public
 * License.  See the file "COPYING" in the main directory of this archive
 * for more details.
 */
#include <linux/export.h>
#include <linux/mm.h>
#include <linux/string.h>
#include <asm/pgalloc.h>


pgd_t *pgd_alloc(struct mm_struct *mm) { pgd_t *ret, *init; ret = (pgd_t *) __get_free_pages(GFP_KERNEL, PGD_ORDER); if (ret) { init = pgd_offset(&init_mm, 0UL); pgd_init((unsigned long)ret); memcpy(ret + USER_PTRS_PER_PGD, init + USER_PTRS_PER_PGD, (PTRS_PER_PGD - USER_PTRS_PER_PGD) * sizeof(pgd_t)); } return ret; }

Contributors

PersonTokensPropCommitsCommitProp
James Hogan81100.00%1100.00%
Total81100.00%1100.00%

EXPORT_SYMBOL_GPL(pgd_alloc);

Overall Contributors

PersonTokensPropCommitsCommitProp
James Hogan99100.00%1100.00%
Total99100.00%1100.00%
Directory: arch/mips/mm
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.