Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at ee9dce44362b2d8132c32964656ab6dff7dfbc6a 20 lines 495 B view raw
1/* SPDX-License-Identifier: GPL-2.0-only */ 2#ifndef _LINUX_MODULE_SYMBOL_H 3#define _LINUX_MODULE_SYMBOL_H 4 5/* Kernel symbol flags bitset. */ 6enum ksym_flags { 7 KSYM_FLAG_GPL_ONLY = 1 << 0, 8}; 9 10/* This ignores the intensely annoying "mapping symbols" found in ELF files. */ 11static inline bool is_mapping_symbol(const char *str) 12{ 13 if (str[0] == '.' && str[1] == 'L') 14 return true; 15 if (str[0] == 'L' && str[1] == '0') 16 return true; 17 return str[0] == '$'; 18} 19 20#endif /* _LINUX_MODULE_SYMBOL_H */