Function report | 
Source Code:kernel\kallsyms.c | 
Create Date:2022-07-28 11:00:11 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:get_symbol_pos
Proto:static unsigned long get_symbol_pos(unsigned long addr, unsigned long *symbolsize, unsigned long *offset)
Type:unsigned long
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| unsigned long | addr | |
| unsigned long * | symbolsize | |
| unsigned long * | offset | 
| 202 | symbol_start = 0 , symbol_end = 0 | 
| 208 | Else BUG_ON(!kallsyms_offsets) | 
| 212 | low = 0 | 
| 213 | high = Tell the compiler that the count isn't in the small data section if the arch* has one (eg: FRV). | 
| 217 | If kallsyms_sym_address(mid) <= addr Then low = mid | 
| 227 | When low && kallsyms_sym_address(low - 1) == kallsyms_sym_address(low) cycle | 
| 228 | --low | 
| 230 | symbol_start = kallsyms_sym_address(low) | 
| 234 | If kallsyms_sym_address(i) > symbol_start Then | 
| 235 | symbol_end = kallsyms_sym_address(i) | 
| 236 | Break | 
| 241 | If Not symbol_end Then | 
| 242 | If is_kernel_inittext(addr) Then symbol_end = _einittext | 
| 250 | If symbolsize Then symbolsize = symbol_end - symbol_start | 
| 252 | If offset Then offset = addr - symbol_start | 
| 255 | Return low | 
| Name | Describe | 
|---|---|
| kallsyms_lookup_size_offset | Lookup an address but don't bother to find any names. | 
| kallsyms_lookup | Lookup an address* - modname is set to NULL if it's in the kernel.* - We guarantee that the returned name is valid until we reschedule even if.* It resides in a module.* - We also guarantee that modname will be valid until rescheduled. | 
| lookup_symbol_name | |
| lookup_symbol_attrs | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |