Function report |
Source Code:kernel\dma\swiotlb.c |
Create Date:2022-07-28 10:35:56 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:swiotlb_init_with_tbl
Proto:int __init swiotlb_init_with_tbl(char *tlb, unsigned long nslabs, int verbose)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
char * | tlb | |
unsigned long | nslabs | |
int | verbose |
205 | bytes = nslabs << log of the size of each IO TLB slab. The number of slabs is command line* controllable. |
207 | 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 |
208 | Used to do a quick range check in swiotlb_tbl_unmap_single and* swiotlb_tbl_sync_single_*, to see if the memory was in fact allocated by this* API. = __pa(tlb) |
217 | This is a free list describing the number of free entries available from* each index = memblock_alloc(alloc_size, PAGE_SIZE) |
224 | If Not io_tlb_orig_addr Then panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns. |
232 | io_tlb_index = 0 |
234 | If verbose Then swiotlb_print_info() |
238 | Return 0 |
Name | Describe |
---|---|
swiotlb_init | Statically reserve bounce buffer space and initialize bounce buffer data* structures for the software IO TLB used to implement the DMA API. |
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 |