![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 */ 0002 #ifndef __LINUX_FAULT_INJECT_USERCOPY_H__ 0003 #define __LINUX_FAULT_INJECT_USERCOPY_H__ 0004 0005 /* 0006 * This header provides a wrapper for injecting failures to user space memory 0007 * access functions. 0008 */ 0009 0010 #include <linux/types.h> 0011 0012 #ifdef CONFIG_FAULT_INJECTION_USERCOPY 0013 0014 bool should_fail_usercopy(void); 0015 0016 #else 0017 0018 static inline bool should_fail_usercopy(void) { return false; } 0019 0020 #endif /* CONFIG_FAULT_INJECTION_USERCOPY */ 0021 0022 #endif /* __LINUX_FAULT_INJECT_USERCOPY_H__ */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |