Function report |
Source Code:mm\memory.c |
Create Date:2022-07-28 14:44:02 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Process all subpages of the specified huge page with the specified* operation. The target subpage will be processed last to keep its* cache lines hot.
Proto:static inline void process_huge_page(unsigned long addr_hint, unsigned int pages_per_huge_page, void (*process_subpage)(unsigned long addr, int idx, void *arg), void *arg)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned long | addr_hint | |
unsigned int | pages_per_huge_page | |
void (* | process_subpage | |
void * | arg |
4633 | addr = addr_hint & ~((pages_per_huge_page << PAGE_SHIFT determines the page size ) - 1) |
4637 | might_sleep() |
4639 | If 2 * n <= pages_per_huge_page Then |
4641 | base = 0 |
4645 | cond_resched() |
4648 | Else |
4650 | base = pages_per_huge_page - 2 * (pages_per_huge_page - n) |
4651 | l = pages_per_huge_page - n |
4654 | cond_resched() |
4666 | cond_resched() |
4668 | cond_resched() |
Name | Describe |
---|---|
clear_huge_page | |
copy_user_huge_page |
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 |