Function report |
Source Code:kernel\dma\swiotlb.c |
Create Date:2022-07-28 10:36:04 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:swiotlb_late_init_with_tbl
Proto:int swiotlb_late_init_with_tbl(char *tlb, unsigned long nslabs)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| char * | tlb | |
| unsigned long | nslabs |
| 333 | bytes = nslabs << log of the size of each IO TLB slab. The number of slabs is command line* controllable. |
| 335 | The number of IO TLB blocks (in groups of 64) between io_tlb_start and* io_tlb_end. This is command line adjustable via setup_io_tlb_npages. = nslabs |
| 339 | set_memory_decrypted((unsignedlong)tlb, bytes >> PAGE_SHIFT determines the page size ) |
| 349 | If Not This is a free list describing the number of free entries available from* each index Then Go to cleanup3 |
| 356 | If Not io_tlb_orig_addr Then Go to cleanup4 |
| 363 | io_tlb_index = 0 |
| 365 | swiotlb_print_info() |
| 367 | late_alloc = 1 |
| 371 | Return 0 |
| 373 | cleanup4 : |
| 377 | cleanup3 : |
| 378 | swiotlb_cleanup() |
| 379 | Return -ENOMEM |
| Name | Describe |
|---|---|
| swiotlb_late_init_with_default_size | Systems with larger DMA zones (those that don't support ISA) can* initialize the swiotlb later using the slab allocator if needed.* This should be just like above, but with some error catching. |
| 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 |