Function report |
Source Code:mm\swapfile.c |
Create Date:2022-07-28 15:19:24 |
| Last Modify:2020-03-17 22:19:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:alloc_swap_info
Proto:static struct swap_info_struct *alloc_swap_info(void)
Type:struct swap_info_struct
Parameter:Nothing
| 2835 | When type < nr_swapfiles cycle |
| 2836 | If Not (SWP_USED etc: see above & SWP_USED) Then Break |
| 2839 | If type >= MAX_SWAPFILES Then |
| 2840 | spin_unlock( & swap_lock) |
| 2844 | If type >= nr_swapfiles Then |
| 2845 | strange name for an index = type |
| 2846 | WRITE_ONCE(swap_info[type], p) |
| 2852 | smp_wmb() |
| 2853 | WRITE_ONCE(nr_swapfiles, nr_swapfiles + 1) |
| 2854 | Else |
| 2862 | of the swap extent rbtree = |
| 2864 | for_each_node(i) |
| 2866 | SWP_USED etc: see above = SWP_USED |
| 2867 | spin_unlock( & swap_lock) |
| 2871 | Return p |
| 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 |