| Function report | 
| Source Code: kernel\power\swap.c | Create Date:2022-07-28 10:02:12 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:swsusp_extents_insert
Proto:static int swsusp_extents_insert(unsigned long swap_offset)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| unsigned long | swap_offset | 
| 138 | ext = rb_entry( * new, structswsusp_extent, node) | 
| 140 | If swap_offset < start Then | 
| 147 | Else if swap_offset > end Then | 
| 154 | Else | 
| 156 | Return -EINVAL | 
| 160 | ext = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). | 
| 164 | start = swap_offset | 
| 165 | end = swap_offset | 
| 166 | rb_link_node( & node, parent, new) | 
| 167 | rb_insert_color( & node, & swsusp_extents) | 
| 168 | Return 0 | 
| Name | Describe | 
|---|---|
| alloc_swapdev_block | alloc_swapdev_block - allocate a swap page and register that it has* been allocated, so that it can be freed in case of an error. | 
| 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 |