Function report |
Source Code:mm\swapfile.c |
Create Date:2022-07-28 15:20:04 |
| Last Modify:2020-03-17 22:19:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:si_swapinfo
Proto:void si_swapinfo(struct sysinfo *val)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct sysinfo * | val |
| 3360 | nr_to_be_unused = 0 |
| 3363 | When type < nr_swapfiles cycle |
| 3366 | If SWP_USED etc: see above & SWP_USED && Not (SWP_USED etc: see above & SWP_WRITEOK) Then nr_to_be_unused += umber of those currently in use |
| 3370 | Total swap space size = protected with swap_lock. reading in vm_swap_full() doesn't need lock + nr_to_be_unused |
| 3371 | spin_unlock( & swap_lock) |
| Name | Describe |
|---|---|
| do_sysinfo | do_sysinfo - fill in sysinfo struct*@info: pointer to buffer to fill |
| 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 |