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:set_bits_ll

Proto:static int set_bits_ll(unsigned long *addr, unsigned long mask_to_set)

Type:int

Parameter:

TypeParameterName
unsigned long *addr
unsigned longmask_to_set
47  nval = addr
48  Do
49  val = nval
50  If val & mask_to_set Then Return -EBUSY
52  cpu_relax()
53  When (nval = cmpxchg(addr, val, val | mask_to_set)) != val cycle
55  Return 0
Caller
NameDescribe
bitmap_set_llmap_set_ll - set 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* Set @nr bits start from @start in @map lock-lessly. Several users