Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\cma.c Create Date:2022-07-28 16:31:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:cma_clear_bitmap

Proto:static void cma_clear_bitmap(struct cma *cma, unsigned long pfn, unsigned int count)

Type:void

Parameter:

TypeParameterName
struct cma *cma
unsigned longpfn
unsigned intcount
88  bitmap_no = pfn - base_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.
Caller
NameDescribe
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