Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /proc/thread-self/root/usr/src/linux-headers-5.15.0-136/arch/x86/include/asm/ |
Upload File : |
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_X86_SECTIONS_H #define _ASM_X86_SECTIONS_H #define arch_is_kernel_initmem_freed arch_is_kernel_initmem_freed #include <asm-generic/sections.h> #include <asm/extable.h> extern char __brk_base[], __brk_limit[]; extern char __end_rodata_aligned[]; #if defined(CONFIG_X86_64) extern char __end_rodata_hpage_align[]; #endif extern char __end_of_kernel_reserve[]; extern unsigned long _brk_start, _brk_end; static inline bool arch_is_kernel_initmem_freed(unsigned long addr) { /* * If _brk_start has not been cleared, brk allocation is incomplete, * and we can not make assumptions about its use. */ if (_brk_start) return 0; /* * After brk allocation is complete, space between _brk_end and _end * is available for allocation. */ return addr >= _brk_end && addr < (unsigned long)&_end; } #endif /* _ASM_X86_SECTIONS_H */