cregit-Linux how code gets into the kernel

Release 4.11 arch/m68k/include/asm/motorola_pgalloc.h

#ifndef _MOTOROLA_PGALLOC_H

#define _MOTOROLA_PGALLOC_H

#include <asm/tlb.h>
#include <asm/tlbflush.h>

extern pmd_t *get_pointer_table(void);
extern int free_pointer_table(pmd_t *);


static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address) { pte_t *pte; pte = (pte_t *)__get_free_page(GFP_KERNEL|__GFP_ZERO); if (pte) { __flush_page_to_ram(pte); flush_tlb_kernel_page(pte); nocache_page(pte); } return pte; }

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds5594.83%125.00%
Andrew Morton11.72%125.00%
Christoph Lameter11.72%125.00%
Roman Zippel11.72%125.00%
Total58100.00%4100.00%


static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) { cache_page(pte); free_page((unsigned long) pte); }

Contributors

PersonTokensPropCommitsCommitProp
Roman Zippel2480.00%133.33%
Benjamin Herrenschmidt516.67%133.33%
Linus Torvalds13.33%133.33%
Total30100.00%3100.00%


static inline pgtable_t pte_alloc_one(struct mm_struct *mm, unsigned long address) { struct page *page; pte_t *pte; page = alloc_pages(GFP_KERNEL|__GFP_ZERO, 0); if(!page) return NULL; if (!pgtable_page_ctor(page)) { __free_page(page); return NULL; } pte = kmap(page); __flush_page_to_ram(pte); flush_tlb_kernel_page(pte); nocache_page(pte); kunmap(page); return page; }

Contributors

PersonTokensPropCommitsCommitProp
Roman Zippel4548.91%112.50%
Kirill A. Shutemov2628.26%112.50%
Linus Torvalds1111.96%112.50%
Linus Torvalds (pre-git)66.52%112.50%
Andrew Morton22.17%225.00%
Martin Schwidefsky11.09%112.50%
Christoph Lameter11.09%112.50%
Total92100.00%8100.00%


static inline void pte_free(struct mm_struct *mm, pgtable_t page) { pgtable_page_dtor(page); cache_page(kmap(page)); kunmap(page); __free_page(page); }

Contributors

PersonTokensPropCommitsCommitProp
Roman Zippel1539.47%125.00%
Linus Torvalds (pre-git)1334.21%125.00%
Martin Schwidefsky615.79%125.00%
Benjamin Herrenschmidt410.53%125.00%
Total38100.00%4100.00%


static inline void __pte_free_tlb(struct mmu_gather *tlb, pgtable_t page, unsigned long address) { pgtable_page_dtor(page); cache_page(kmap(page)); kunmap(page); __free_page(page); }

Contributors

PersonTokensPropCommitsCommitProp
Roman Zippel2150.00%116.67%
Linus Torvalds (pre-git)819.05%116.67%
Martin Schwidefsky614.29%116.67%
Benjamin Herrenschmidt49.52%116.67%
Andrew Morton37.14%233.33%
Total42100.00%6100.00%


static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address) { return get_pointer_table(); }

Contributors

PersonTokensPropCommitsCommitProp
Roman Zippel1571.43%150.00%
Linus Torvalds (pre-git)628.57%150.00%
Total21100.00%2100.00%


static inline int pmd_free(struct mm_struct *mm, pmd_t *pmd) { return free_pointer_table(pmd); }

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)1568.18%133.33%
Benjamin Herrenschmidt522.73%133.33%
Roman Zippel29.09%133.33%
Total22100.00%3100.00%


static inline int __pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmd, unsigned long address) { return free_pointer_table(pmd); }

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)1246.15%120.00%
Roman Zippel726.92%120.00%
Benjamin Herrenschmidt415.38%120.00%
Andrew Morton311.54%240.00%
Total26100.00%5100.00%


static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) { pmd_free(mm, (pmd_t *)pgd); }

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)1037.04%133.33%
Roman Zippel1037.04%133.33%
Benjamin Herrenschmidt725.93%133.33%
Total27100.00%3100.00%


static inline pgd_t *pgd_alloc(struct mm_struct *mm) { return (pgd_t *)get_pointer_table(); }

Contributors

PersonTokensPropCommitsCommitProp
Roman Zippel1257.14%150.00%
Linus Torvalds (pre-git)942.86%150.00%
Total21100.00%2100.00%


static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, pte_t *pte) { pmd_set(pmd, pte); }

Contributors

PersonTokensPropCommitsCommitProp
Roman Zippel1451.85%150.00%
Linus Torvalds (pre-git)1348.15%150.00%
Total27100.00%2100.00%


static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, pgtable_t page) { pmd_set(pmd, page_address(page)); }

Contributors

PersonTokensPropCommitsCommitProp
Roman Zippel1655.17%133.33%
Linus Torvalds (pre-git)1241.38%133.33%
Martin Schwidefsky13.45%133.33%
Total29100.00%3100.00%

#define pmd_pgtable(pmd) pmd_page(pmd)
static inline void pgd_populate(struct mm_struct *mm, pgd_t *pgd, pmd_t *pmd) { pgd_set(pgd, pmd); }

Contributors

PersonTokensPropCommitsCommitProp
Roman Zippel1555.56%133.33%
Linus Torvalds (pre-git)829.63%133.33%
Linus Torvalds414.81%133.33%
Total27100.00%3100.00%

#endif /* _MOTOROLA_PGALLOC_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Roman Zippel20040.16%213.33%
Linus Torvalds (pre-git)13727.51%16.67%
Linus Torvalds7114.26%213.33%
Benjamin Herrenschmidt295.82%213.33%
Kirill A. Shutemov265.22%16.67%
Martin Schwidefsky214.22%16.67%
Andrew Morton91.81%426.67%
Geert Uytterhoeven30.60%16.67%
Christoph Lameter20.40%16.67%
Total498100.00%15100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.