Function report |
Source Code:kernel\kexec_file.c |
Create Date:2022-07-28 11:04:15 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:locate_mem_hole_top_down
Proto:static int locate_mem_hole_top_down(unsigned long start, unsigned long end, struct kexec_buf *kbuf)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned long | start | |
unsigned long | end | |
struct kexec_buf * | kbuf |
466 | temp_end = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(end, buf_max) |
467 | temp_start = temp_end - memsz |
469 | Do |
471 | temp_start = temp_start & ~(buf_align - 1) |
473 | If temp_start < start || temp_start < buf_min Then Return 0 |
476 | temp_end = temp_start + memsz - 1 |
482 | If kimage_is_destination_range(image, temp_start, temp_end) Then |
483 | temp_start = temp_start - PAGE_SIZE |
484 | Continue |
488 | Break |
489 | When 1 cycle |
492 | mem = temp_start |
495 | Return 1 |
Name | Describe |
---|---|
locate_mem_hole_callback |
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 |