Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /usr/src/linux-headers-5.15.0-153/include/linux/ |
Upload File : |
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __LINUX_FAULT_INJECT_USERCOPY_H__ #define __LINUX_FAULT_INJECT_USERCOPY_H__ /* * This header provides a wrapper for injecting failures to user space memory * access functions. */ #include <linux/types.h> #ifdef CONFIG_FAULT_INJECTION_USERCOPY bool should_fail_usercopy(void); #else static inline bool should_fail_usercopy(void) { return false; } #endif /* CONFIG_FAULT_INJECTION_USERCOPY */ #endif /* __LINUX_FAULT_INJECT_USERCOPY_H__ */