Function report |
Source Code:mm\ksm.c |
Create Date:2022-07-28 15:40:33 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:calc_checksum
Proto:static unsigned int calc_checksum(struct page *page)
Type:unsigned int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct page * | page |
| 1026 | addr = kmap_atomic(page) |
| 1027 | checksum = xxhash() - calculate wordsize hash of the input with a given seed*@input: The data to hash |
| 1028 | 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.(addr) |
| 1029 | Return checksum |
| Name | Describe |
|---|---|
| cmp_and_merge_page | mp_and_merge_page - first see if page can be merged into the stable tree;* if not, compare checksum to previous and if it's the same, see if page can* be inserted into the unstable tree, or merged with a page already there and |
| ksm_init |
| 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 |