include/linux/kasan-enabled.h

Source file repositories/reference/linux-study-clean/include/linux/kasan-enabled.h

File Facts

System
Linux kernel
Corpus path
include/linux/kasan-enabled.h
Extension
.h
Size
1242 bytes
Lines
50
Domain
Core OS
Bucket
Core Kernel Interface
Inferred role
Core OS: implementation source
Status
source implementation candidate

Why This File Exists

Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.

Dependency Surface

Detected Declarations

Annotated Snippet

static inline void kasan_enable(void) {}
#endif /* CONFIG_ARCH_DEFER_KASAN || CONFIG_KASAN_HW_TAGS */

#ifdef CONFIG_KASAN_HW_TAGS
static inline bool kasan_hw_tags_enabled(void)
{
	return kasan_enabled();
}
#else
static inline bool kasan_hw_tags_enabled(void)
{
	return false;
}
#endif /* CONFIG_KASAN_HW_TAGS */

#endif /* LINUX_KASAN_ENABLED_H */

Annotation

Implementation Notes