Function report |
Source Code:arch\x86\kernel\cpu\mtrr\mtrr.c |
Create Date:2022-07-28 08:05:12 |
| Last Modify:2022-05-18 17:35:08 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:mtrr_del_page - delete a memory type region*@reg: Register returned by mtrr_add*@base: Physical base address*@size: Size of region* If register is supplied then base and size are ignored. This is* how drivers should call it.* Releases an MTRR region
Proto:int mtrr_del_page(int reg, unsigned long base, unsigned long size)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| int | reg | |
| unsigned long | base | |
| unsigned long | size |
| 485 | If Not mtrr_enabled() Then Return -ENODEV |
| 488 | max = num_var_ranges |
| 490 | get_online_cpus() |
| 491 | mutex_lock( & mtrr_mutex) |
| 492 | If reg < 0 Then |
| 501 | If reg < 0 Then |
| 512 | If lsize < 1 Then |
| 516 | If mtrr_usage_table[reg] < 1 Then |
| 520 | If --mtrr_usage_table[reg] < 1 Then set_mtrr_cpuslocked(reg, 0, 0, 0) |
| 523 | out : |
| 524 | mutex_unlock( & mtrr_mutex) |
| 525 | put_online_cpus() |
| 526 | Return error |
| Name | Describe |
|---|---|
| mtrr_del | mtrr_del - delete a memory type region*@reg: Register returned by mtrr_add*@base: Physical base address*@size: Size of region* If register is supplied then base and size are ignored. This is* how drivers should call it.* Releases an MTRR region |
| mtrr_file_del | |
| mtrr_write | seq_file can seek but we ignore it.* Format of control line:* "base=%Lx size=%Lx type=%s" or "disable=%d" |
| mtrr_ioctl |
| 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 |