Function report |
Source Code:mm\dmapool.c |
Create Date:2022-07-28 15:24:15 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:dma_pool_alloc - get a block of consistent memory*@pool: dma pool that will produce the block*@mem_flags: GFP_* bitmask*@handle: pointer to dma address of block* Return: the kernel virtual address of a currently unused block,
Proto:void *dma_pool_alloc(struct dma_pool *pool, gfp_t mem_flags, dma_addr_t *handle)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct dma_pool * | pool | |
gfp_t | mem_flags | |
dma_addr_t * | handle |
329 | spin_lock_irqsave( & lock, flags) |
331 | If offset < allocation Then Go to ready |
336 | spin_unlock_irqrestore( & lock, flags) |
338 | page = pool_alloc_page(pool, mem_flags & (~__GFP_ZERO)) |
339 | If Not page Then Return NULL |
342 | spin_lock_irqsave( & lock, flags) |
345 | ready : |
346 | in_use++ |
379 | spin_unlock_irqrestore( & lock, flags) |
381 | If want_init_on_alloc(mem_flags) Then memset(retval, 0, size) |
384 | Return retval |
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 |