Function report | 
Source Code:kernel\kexec_core.c | 
Create Date:2022-07-28 11:03:02 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:kimage_load_crash_segment
Proto:static int kimage_load_crash_segment(struct kimage *image, struct kexec_segment *segment)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct kimage * | image | |
| struct kexec_segment * | segment | 
| 855 | unsigned char * kbuf = NULL | 
| 857 | result = 0 | 
| 858 | If If set, we are using file mode kexec syscall Then kbuf = kbuf | 
| 871 | If Not page Then | 
| 875 | arch_kexec_post_alloc_pages(page_address(page), 1, 0) | 
| 878 | mchunk = min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(size_t, mbytes, PAGE_SIZE - (maddr & ~PAGE_MASK)) | 
| 880 | uchunk = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(ubytes, mchunk) | 
| 887 | If If set, we are using file mode kexec syscall Then No 3D Now!(ptr, kbuf, uchunk) | 
| 889 | Else result = copy_from_user(ptr, buf, uchunk) | 
| 893 | arch_kexec_pre_free_pages(page_address(page), 1) | 
| 894 | If result Then | 
| 900 | If If set, we are using file mode kexec syscall Then kbuf += mchunk | 
| 906 | cond_resched() | 
| 908 | out : | 
| 909 | Return result | 
| Name | Describe | 
|---|---|
| kimage_load_segment | 
| 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  |