Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\genalloc.c Create Date:2022-07-28 06:56:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:clear_bits_ll

Proto:static int clear_bits_ll(unsigned long *addr, unsigned long mask_to_clear)

Type:int

Parameter:

TypeParameterName
unsigned long *addr
unsigned longmask_to_clear
62  nval = addr
63  Do
64  val = nval
65  If (val & mask_to_clear) != mask_to_clear Then Return -EBUSY
67  cpu_relax()
68  When (nval = cmpxchg(addr, val, val & ~mask_to_clear)) != val cycle
70  Return 0
Caller
NameDescribe
bitmap_clear_llmap_clear_ll - clear the specified number of bits at the specified position*@map: pointer to a bitmap*@start: a bit position in @map*@nr: number of bits to set* Clear @nr bits start from @start in @map lock-lessly. Several users