io_uring/cmd: add cmd lazy tw wake helper
[linux-block.git] / include / linux / module_symbol.h
CommitLineData
987d2e0a
TY
1/* SPDX-License-Identifier: GPL-2.0-only */
2#ifndef _LINUX_MODULE_SYMBOL_H
3#define _LINUX_MODULE_SYMBOL_H
4
5/* This ignores the intensely annoying "mapping symbols" found in ELF files. */
0a3bf860 6static inline int is_mapping_symbol(const char *str)
987d2e0a
TY
7{
8 if (str[0] == '.' && str[1] == 'L')
9 return true;
0a3bf860
TY
10 if (str[0] == 'L' && str[1] == '0')
11 return true;
987d2e0a
TY
12 return str[0] == '$' &&
13 (str[1] == 'a' || str[1] == 'd' || str[1] == 't' || str[1] == 'x')
14 && (str[2] == '\0' || str[2] == '.');
15}
16
17#endif /* _LINUX_MODULE_SYMBOL_H */