cregit-Linux how code gets into the kernel

Release 4.16 include/asm-generic/mm_hooks.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Define generic no-op hooks for arch_dup_mmap, arch_exit_mmap
 * and arch_unmap to be included in asm-FOO/mmu_context.h for any
 * arch FOO which doesn't need to hook these.
 */
#ifndef _ASM_GENERIC_MM_HOOKS_H

#define _ASM_GENERIC_MM_HOOKS_H


static inline int arch_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Jeremy Fitzhardinge1470.00%150.00%
Thomas Gleixner630.00%150.00%
Total20100.00%2100.00%


static inline void arch_exit_mmap(struct mm_struct *mm) { }

Contributors

PersonTokensPropCommitsCommitProp
Jeremy Fitzhardinge11100.00%1100.00%
Total11100.00%1100.00%


static inline void arch_unmap(struct mm_struct *mm, struct vm_area_struct *vma, unsigned long start, unsigned long end) { }

Contributors

PersonTokensPropCommitsCommitProp
Dave Hansen24100.00%1100.00%
Total24100.00%1100.00%


static inline void arch_bprm_mm_init(struct mm_struct *mm, struct vm_area_struct *vma) { }

Contributors

PersonTokensPropCommitsCommitProp
Dave Hansen16100.00%1100.00%
Total16100.00%1100.00%


static inline bool arch_vma_access_permitted(struct vm_area_struct *vma, bool write, bool execute, bool foreign) { /* by default, allow everything */ return true; }

Contributors

PersonTokensPropCommitsCommitProp
Dave Hansen25100.00%3100.00%
Total25100.00%3100.00%

#endif /* _ASM_GENERIC_MM_HOOKS_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Dave Hansen6661.68%457.14%
Jeremy Fitzhardinge3431.78%114.29%
Thomas Gleixner65.61%114.29%
Greg Kroah-Hartman10.93%114.29%
Total107100.00%7100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.