Function report |
Source Code:kernel\events\uprobes.c |
Create Date:2022-07-28 13:44:51 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__update_ref_ctr
Proto:static int __update_ref_ctr(struct mm_struct *mm, unsigned long vaddr, short d)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct mm_struct * | mm | |
unsigned long | vaddr | |
short | d |
385 | ret = get_user_pages_remote(NULL, mm, vaddr, 1, check pte is writable , & page, & vma, NULL) |
387 | If Value for the false possibility is greater at compile time(ret <= 0) Then |
395 | kaddr = kmap_atomic(page) |
398 | If Value for the false possibility is greater at compile time( * ptr + d < 0) Then |
402 | Go to out |
406 | ret = 0 |
407 | out : |
408 | Prevent people trying to call kunmap_atomic() as if it were kunmap()* kunmap_atomic() should get the return value of kmap_atomic, not the page.(kaddr) |
410 | Return ret |
Name | Describe |
---|---|
update_ref_ctr | |
delayed_ref_ctr_inc | @vma contains reference counter, not the probed instruction. |
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 |