| Function report | 
| Source Code: kernel\kprobes.c | Create Date:2022-07-28 11:34:50 | 
| Last Modify:2022-05-22 18:14:58 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:__free_insn_slot
Proto:void __free_insn_slot(struct kprobe_insn_cache *c, kprobe_opcode_t *slot, int dirty)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct kprobe_insn_cache * | c | |
| kprobe_opcode_t * | slot | |
| int | dirty | 
| 241 | mutex_lock( & mutex) | 
| 244 | idx = (slot - Page of instruction slots ) / size of instruction slot * sizeof(kprobe_opcode_t) | 
| 246 | If idx >= 0 && idx < slots_per_page(c) Then Go to out | 
| 250 | WARN_ON(1) | 
| 251 | kip = NULL | 
| 252 | out : | 
| 255 | If kip Then | 
| 258 | If dirty Then | 
| 259 | slot_used[idx] = SLOT_DIRTY | 
| 260 | ngarbage++ | 
| 261 | If ++nr_garbage > slots_per_page(c) Then collect_garbage_slots(c) | 
| 263 | Else | 
| Name | Describe | 
|---|---|
| free_insn_slot | |
| free_optinsn_slot | 
| 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 |