Lines Matching full:re
13 import re
44 known_sections = KernRe(known_section_names, flags = re.I)
47 flags=re.I, cache=False)
80 (KernRe(r"__attribute__\s*\(\([a-z0-9,_\*\s\(\)]*\)\)", flags=re.I | re.S, cache=False), ' '),
81 (KernRe(r'\s*__aligned\s*\([^;]*\)', re.S), ' '),
82 (KernRe(r'\s*__counted_by\s*\([^;]*\)', re.S), ' '),
83 (KernRe(r'\s*__counted_by_(le|be)\s*\([^;]*\)', re.S), ' '),
84 (KernRe(r'\s*__packed\s*', re.S), ' '),
85 (KernRe(r'\s*CRYPTO_MINALIGN_ATTR', re.S), ' '),
86 (KernRe(r'\s*__private', re.S), ' '),
87 (KernRe(r'\s*__rcu', re.S), ' '),
88 (KernRe(r'\s*____cacheline_aligned_in_smp', re.S), ' '),
89 (KernRe(r'\s*____cacheline_aligned', re.S), ' '),
110 # Python re module, as it has:
125 (KernRe(r'\bstruct_group\s*\(([^,]*,)', re.S), r'STRUCT_GROUP('),
126 (KernRe(r'\bstruct_group_attr\s*\(([^,]*,){2}', re.S), r'STRUCT_GROUP('),
127 (KernRe(r'\bstruct_group_tagged\s*\(([^,]*),([^,]*),', re.S), r'struct \1 \2; STRUCT_GROUP('),
128 (KernRe(r'\b__struct_group\s*\(([^,]*,){3}', re.S), r'STRUCT_GROUP('),
137 (KernRe(r'__ETHTOOL_DECLARE_LINK_MODE_MASK\s*\(([^\)]+)\)', re.S),
139 (KernRe(r'DECLARE_PHY_INTERFACE_MASK\s*\(([^\)]+)\)', re.S),
142 re.S), r'unsigned long \1[BITS_TO_LONGS(\2)]'),
144 re.S), r'unsigned long \1[1 << ((\2) - 1)]'),
146 r',\s*' + struct_args_pattern + r'\)', re.S), r'\2 *\1'),
148 struct_args_pattern + r'\)', re.S), r'\2 *\1'),
150 struct_args_pattern + r'\)', re.S), r'\1 \2[]'),
151 (KernRe(r'DEFINE_DMA_UNMAP_ADDR\s*\(' + struct_args_pattern + r'\)', re.S), r'dma_addr_t \1'),
152 (KernRe(r'DEFINE_DMA_UNMAP_LEN\s*\(' + struct_args_pattern + r'\)', re.S), r'__u32 \1'),
160 (re.compile(r'\bSTRUCT_GROUP\('), r'\1'),
188 (KernRe(r"__(?:re)?alloc_size\s*\(\s*\d+\s*(?:,\s*\d+\s*)?\) +"), ""),
221 text = KernRe(r'/\*\s*private:.*?/\*\s*public:.*?\*/', flags=re.S).sub('', text)
222 text = KernRe(r'/\*\s*private:.*', flags=re.S).sub('', text)
226 return KernRe(r'\s*/\*.*?\*/\s*', flags=re.S).sub('', text).strip()
624 args[0] = re.sub(r'(\*+)\s*', r' \1', args[0])
883 members = re.sub(r'(\{[^\{\}]*\})', '', members)
902 proto = KernRe(r'#\s*((define|ifdef|if)\s+|endif)[^;]*;', flags=re.S).sub('', proto)
1090 # 1. Return type (may be nothing if we're looking at a macro)
1275 # Otherwise we're looking for a normal kerneldoc declaration line.
1464 # Add the trimmed result to the section and we're done.
1518 proto = re.sub(r'[\r\n]+', ' ', proto)
1590 line = KernRe(r"//.*$", re.S).sub('', line)
1626 # ... and we're done
1637 line = KernRe(r"//.*$", re.S).sub('', line).strip()