Function report |
Source Code:arch\x86\kernel\e820.c |
Create Date:2022-07-28 07:43:13 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__e820__range_update
Proto:static u64 __init __e820__range_update(struct e820_table *table, u64 start, u64 size, enum e820_type old_type, enum e820_type new_type)
Type:u64
Parameter:
Type | Parameter | Name |
---|---|---|
struct e820_table * | table | |
u64 | start | |
u64 | size | |
enum e820_type | old_type | |
enum e820_type | new_type |
453 | real_updated_size = 0 |
457 | If size > ULLONG_MAX - start Then size = ULLONG_MAX - start |
461 | printk(debug-level messages "e820: update [mem %#010Lx-%#010Lx] ", start, end - 1) |
462 | e820_print_type(old_type) |
464 | e820_print_type(new_type) |
467 | When i < nr_entries cycle |
489 | real_updated_size += size |
490 | Continue |
494 | final_start = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(start, addr) |
495 | final_end = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(end, entry_end) |
496 | If final_start >= final_end Then Continue |
501 | real_updated_size += final_end - final_start |
507 | size -= final_end - final_start |
508 | If addr < final_start Then Continue |
513 | Return real_updated_size |
Name | Describe |
---|---|
e820__range_update | |
e820__range_update_kexec |
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 |