Files
linux-kernel/linux-7.2.3/include/linux/bpf_defs.h
T
2026-09-06 12:53:21 -06:00

20 lines
535 B
C

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* Subset of bpf.h declarations, split out so files that need only these
* declarations can avoid bpf.h's full include cost.
*/
#ifndef _LINUX_BPF_DEFS_H
#define _LINUX_BPF_DEFS_H
#ifdef CONFIG_BPF_SYSCALL
bool bpf_arena_handle_page_fault(unsigned long addr, bool is_write, unsigned long fault_ip);
#else
static inline bool bpf_arena_handle_page_fault(unsigned long addr, bool is_write,
unsigned long fault_ip)
{
return false;
}
#endif
#endif /* _LINUX_BPF_DEFS_H */