cregit-Linux how code gets into the kernel

Release 4.16 include/linux/error-injection.h

Directory: include/linux
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LINUX_ERROR_INJECTION_H

#define _LINUX_ERROR_INJECTION_H

#ifdef CONFIG_FUNCTION_ERROR_INJECTION

#include <asm/error-injection.h>

extern bool within_error_injection_list(unsigned long addr);
extern int get_injectable_error_type(unsigned long addr);

#else /* !CONFIG_FUNCTION_ERROR_INJECTION */

#include <asm-generic/error-injection.h>

static inline bool within_error_injection_list(unsigned long addr) { return false; }

Contributors

PersonTokensPropCommitsCommitProp
Masami Hiramatsu14100.00%1100.00%
Total14100.00%1100.00%


static inline int get_injectable_error_type(unsigned long addr) { return EI_ETYPE_NONE; }

Contributors

PersonTokensPropCommitsCommitProp
Masami Hiramatsu14100.00%1100.00%
Total14100.00%1100.00%

#endif #endif /* _LINUX_ERROR_INJECTION_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Masami Hiramatsu70100.00%2100.00%
Total70100.00%2100.00%
Directory: include/linux
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.