Function report |
Source Code:mm\swap_state.c |
Create Date:2022-07-28 15:14:50 |
Last Modify:2020-03-17 22:02:06 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:swapin_nr_pages
Proto:static unsigned long swapin_nr_pages(unsigned long offset)
Type:unsigned long
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned long | offset |
508 | If max_pages <= 1 Then Return 1 |
511 | hits = atomic_xchg( & swapin_readahead_hits, 0) |
512 | pages = __swapin_nr_pages(prev_offset, offset, hits, max_pages, atomic_read( & last_readahead_pages)) |
514 | If Not hits Then prev_offset = offset |
516 | atomic_set( & last_readahead_pages, pages) |
518 | Return pages |
Name | Describe |
---|---|
swap_cluster_readahead | swap_cluster_readahead - swap in pages in hope we need them soon*@entry: swap entry of this memory*@gfp_mask: memory allocation flags*@vmf: fault information* Returns the struct page for entry and addr, after queueing swapin. |
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 |