Function report |
Source Code:kernel\resource.c |
Create Date:2022-07-28 09:04:54 |
| Last Modify:2022-05-22 11:14:39 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:free_resource
Proto:static void free_resource(struct resource *res)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct resource * | res |
| 152 | If Not res Then Return |
| 155 | If Not PageSlab(virt_to_head_page(res)) Then |
| 156 | spin_lock( & bootmem_resource_lock) |
| 157 | sibling = For memory hotplug, there is no way to free resource entries allocated* by boot mem after the system is up. So for reusing the resource entry* we need to remember the resource. |
| 158 | For memory hotplug, there is no way to free resource entries allocated* by boot mem after the system is up. So for reusing the resource entry* we need to remember the resource. = res |
| 159 | spin_unlock( & bootmem_resource_lock) |
| 160 | Else |
| Name | Describe |
|---|---|
| __reserve_region_with_split | |
| __request_region | __request_region - create a new busy resource region*@parent: parent resource descriptor*@start: resource start address*@n: resource region size*@name: reserving caller's ID string*@flags: IO resource flags |
| __release_region | __release_region - release a previously reserved resource region*@parent: parent resource descriptor*@start: resource start address*@n: resource region size* The described resource region must match a currently busy region. |
| 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 |