cregit-Linux how code gets into the kernel

Release 4.8 arch/sh/mm/hugetlbpage.c

Directory: arch/sh/mm
/*
 * arch/sh/mm/hugetlbpage.c
 *
 * SuperH HugeTLB page support.
 *
 * Cloned from sparc64 by Paul Mundt.
 *
 * Copyright (C) 2002, 2003 David S. Miller (davem@redhat.com)
 */

#include <linux/init.h>
#include <linux/fs.h>
#include <linux/mm.h>
#include <linux/hugetlb.h>
#include <linux/pagemap.h>
#include <linux/sysctl.h>

#include <asm/mman.h>
#include <asm/pgalloc.h>
#include <asm/tlb.h>
#include <asm/tlbflush.h>
#include <asm/cacheflush.h>


pte_t *huge_pte_alloc(struct mm_struct *mm, unsigned long addr, unsigned long sz) { pgd_t *pgd; pud_t *pud; pmd_t *pmd; pte_t *pte = NULL; pgd = pgd_offset(mm, addr); if (pgd) { pud = pud_alloc(mm, pgd, addr); if (pud) { pmd = pmd_alloc(mm, pud, addr); if (pmd) pte = pte_alloc_map(mm, pmd, addr); } } return pte; }

Contributors

PersonTokensPropCommitsCommitProp
andrew mortonandrew morton7273.47%133.33%
paul mundtpaul mundt2222.45%133.33%
andi kleenandi kleen44.08%133.33%
Total98100.00%3100.00%


pte_t *huge_pte_offset(struct mm_struct *mm, unsigned long addr) { pgd_t *pgd; pud_t *pud; pmd_t *pmd; pte_t *pte = NULL; pgd = pgd_offset(mm, addr); if (pgd) { pud = pud_offset(pgd, addr); if (pud) { pmd = pmd_offset(pud, addr); if (pmd) pte = pte_offset_map(pmd, addr); } } return pte; }

Contributors

PersonTokensPropCommitsCommitProp
andrew mortonandrew morton6270.45%125.00%
paul mundtpaul mundt1820.45%125.00%
david gibsondavid gibson66.82%125.00%
christoph lameterchristoph lameter22.27%125.00%
Total88100.00%4100.00%


int pmd_huge(pmd_t pmd) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
david gibsondavid gibson763.64%150.00%
andrew mortonandrew morton436.36%150.00%
Total11100.00%2100.00%


int pud_huge(pud_t pud) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
andi kleenandi kleen11100.00%1100.00%
Total11100.00%1100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
andrew mortonandrew morton17271.07%116.67%
paul mundtpaul mundt4016.53%116.67%
andi kleenandi kleen156.20%233.33%
david gibsondavid gibson135.37%116.67%
christoph lameterchristoph lameter20.83%116.67%
Total242100.00%6100.00%
Directory: arch/sh/mm
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.