cregit-Linux how code gets into the kernel

Release 4.13 arch/arm/include/asm/set_memory.h

/*
 * Copyright (C) 1999-2002 Russell King
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

#ifndef _ASMARM_SET_MEMORY_H

#define _ASMARM_SET_MEMORY_H

#ifdef CONFIG_MMU
int set_memory_ro(unsigned long addr, int numpages);
int set_memory_rw(unsigned long addr, int numpages);
int set_memory_x(unsigned long addr, int numpages);
int set_memory_nx(unsigned long addr, int numpages);
#else

static inline int set_memory_ro(unsigned long addr, int numpages) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Laura Abbott17100.00%1100.00%
Total17100.00%1100.00%


static inline int set_memory_rw(unsigned long addr, int numpages) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Laura Abbott17100.00%1100.00%
Total17100.00%1100.00%


static inline int set_memory_x(unsigned long addr, int numpages) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Laura Abbott17100.00%1100.00%
Total17100.00%1100.00%


static inline int set_memory_nx(unsigned long addr, int numpages) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Laura Abbott17100.00%1100.00%
Total17100.00%1100.00%

#endif #ifdef CONFIG_STRICT_KERNEL_RWX void set_kernel_text_rw(void); void set_kernel_text_ro(void); #else
static inline void set_kernel_text_rw(void) { }

Contributors

PersonTokensPropCommitsCommitProp
Laura Abbott8100.00%1100.00%
Total8100.00%1100.00%


static inline void set_kernel_text_ro(void) { }

Contributors

PersonTokensPropCommitsCommitProp
Laura Abbott8100.00%1100.00%
Total8100.00%1100.00%

#endif #endif

Overall Contributors

PersonTokensPropCommitsCommitProp
Laura Abbott163100.00%1100.00%
Total163100.00%1100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.