Function report |
Source Code:kernel\dma\swiotlb.c |
Create Date:2022-07-28 10:36:00 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:int swiotlb_late_init_with_default_size(size_t default_size)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
size_t | default_size |
279 | req_nslabs = 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. |
280 | unsigned char * vstart = NULL |
282 | rc = 0 |
292 | order = get_order - Determine the allocation order of a memory size*@size: The size for which to get the order* Determine the allocation order of a particular sized block of memory |
293 | 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. = SLABS_PER_PAGE << order |
299 | If vstart Then Break |
301 | order-- |
304 | If Not vstart Then |
305 | 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. = req_nslabs |
306 | Return -ENOMEM |
313 | rc = swiotlb_late_init_with_tbl(vstart, 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.) |
314 | If rc Then free_pages((unsignedlong)vstart, order) |
317 | Return rc |
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 |