| Function report | 
| Source Code: mm\swap_state.c | Create Date:2022-07-28 15:14:59 | 
| Last Modify:2020-03-17 22:02:06 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:init_swap_address_space
Proto:int init_swap_address_space(unsigned int type, unsigned long nr_pages)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| unsigned int | type | |
| unsigned long | nr_pages | 
| 603 | spaces = kvcalloc(nr, sizeof(structaddress_space), GFP_KERNEL) | 
| 609 | atomic_set( & i_mmap_writable, 0) | 
| 614 | nr_swapper_spaces[type] = nr | 
| 615 | swapper_spaces[type] = spaces | 
| 617 | Return 0 | 
| Name | Describe | 
|---|---|
| SYSCALL_DEFINE2 | 
| 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 |