函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\cma.c Create Date:2022-07-27 18:06:55
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:cma_clear_bitmap

函数原型:static void cma_clear_bitmap(struct cma *cma, unsigned long pfn, unsigned int count)

返回类型:void

参数:

类型参数名称
struct cma *cma
unsigned longpfn
unsigned intcount
88  bitmap_no等于pfnbase_pfn右移 Order of pages represented by one bit
89  bitmap_count等于cma_bitmap_pages_to_bits(cma, count)
91  mutex_lock( & lock)
92  bitmap_clear(bitmap, bitmap_no, bitmap_count)
93  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
调用者
名称描述
cma_allocma_alloc() - allocate pages from contiguous area*@cma: Contiguous memory region for which the allocation is performed
cma_releasema_release() - release allocated pages*@cma: Contiguous memory region for which the allocation is performed