Function report |
Source Code:kernel\kexec_core.c |
Create Date:2022-07-28 11:03:09 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:crash_shrink_memory
Proto:int crash_shrink_memory(unsigned long new_size)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| unsigned long | new_size |
| 1008 | ret = 0 |
| 1013 | mutex_lock( & kexec_mutex) |
| 1015 | If kexec_crash_image Then |
| 1027 | ram_res = 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). |
| 1028 | If Not ram_res Then |
| 1036 | crash_free_reserved_phys_range(end, end) |
| 1038 | If ((start == end) && (parent != NULL)) Then lease_resource - release a previously reserved resource*@old: resource pointer |
| 1044 | name = "System RAM" |
| 1050 | unlock : |
| 1052 | Return ret |
| Name | Describe |
|---|---|
| kexec_crash_size_store |
| 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 |