Function report |
Source Code:lib\iommu-helper.c |
Create Date:2022-07-28 07:11:23 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:iommu_area_alloc
Proto:unsigned long iommu_area_alloc(unsigned long *map, unsigned long size, unsigned long start, unsigned int nr, unsigned long shift, unsigned long boundary_size, unsigned long align_mask)
Type:unsigned long
Parameter:
| Type | Parameter | Name |
|---|---|---|
| unsigned long * | map | |
| unsigned long | size | |
| unsigned long | start | |
| unsigned int | nr | |
| unsigned long | shift | |
| unsigned long | boundary_size | |
| unsigned long | align_mask |
| 17 | size -= 1 |
| 18 | again : |
| 21 | If iommu_is_span_boundary(index, nr, shift, boundary_size) Then |
| 22 | start = @a is a power of 2 value (shift + index, boundary_size) - shift |
| 23 | Go to again |
| 25 | bitmap_set(map, index, nr) |
| 26 | Return index |
| 28 | Return -1 |
| Name | Describe |
|---|---|
| alloc_iommu |
| 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 |