Function report |
Source Code:mm\memcontrol.c |
Create Date:2022-07-28 16:13:12 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:get_mctgt_type - get target type of moving charge*@vma: the vma the pte to be checked belongs*@addr: the address corresponding to the pte to be checked*@ptent: the pte to be checked*@target: the pointer the target page or swap ent will be stored(can be
Proto:static enum mc_target_type get_mctgt_type(struct vm_area_struct *vma, unsigned long addr, pte_t ptent, union mc_target *target)
Type:enum mc_target_type
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct vm_area_struct * | vma | |
| unsigned long | addr | |
| pte_t | ptent | |
| union mc_target * | target |
| 5400 | ret = MC_TARGET_NONE |
| 5401 | swp_entry_t ent = {val = 0} |
| 5403 | If pte_present(ptent) Then page = mc_handle_present_pte(vma, addr, ptent) |
| 5405 | Else if heck whether a pte points to a swap entry Then page = mc_handle_swap_pte(vma, ptent, & ent) |
| 5412 | If page Then |
| 5418 | If mem_cgroup == from Then |
| 5419 | ret = MC_TARGET_PAGE |
| 5420 | If is_device_private_page(page) Then ret = MC_TARGET_DEVICE |
| 5434 | ret = MC_TARGET_SWAP |
| 5438 | Return ret |
| Name | Describe |
|---|---|
| mem_cgroup_count_precharge_pte_range | |
| mem_cgroup_move_charge_pte_range |
| 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 |