Function report | 
Source Code:kernel\kexec_core.c | 
Create Date:2022-07-28 11:02:58 | 
| 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_normal_segment
Proto:static int kimage_load_normal_segment(struct kimage *image, struct kexec_segment *segment)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct kimage * | image | |
| struct kexec_segment * | segment | 
| 782 | unsigned char * kbuf = NULL | 
| 784 | result = 0 | 
| 785 | If If set, we are using file mode kexec syscall Then kbuf = kbuf | 
| 793 | result = kimage_set_destination(image, maddr) | 
| 802 | page = kimage_alloc_page(image, GFP_HIGHUSER, maddr) | 
| 803 | If Not page Then | 
| 814 | clear_page(ptr) | 
| 816 | 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)) | 
| 818 | uchunk = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(ubytes, mchunk) | 
| 821 | If If set, we are using file mode kexec syscall Then No 3D Now!(ptr, kbuf, uchunk) | 
| 823 | Else result = copy_from_user(ptr, buf, uchunk) | 
| 826 | If result Then | 
| 832 | If If set, we are using file mode kexec syscall Then kbuf += mchunk | 
| 838 | cond_resched() | 
| 840 | out : | 
| 841 | 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  |