函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:set_bits_ll

函数原型:static int set_bits_ll(unsigned long *addr, unsigned long mask_to_set)

返回类型:int

参数:

类型参数名称
unsigned long *addr
unsigned longmask_to_set
47  nval等于addr
48  循环
49  val等于nval
50  如果val按位与mask_to_set则返回:负EBUSY
52  cpu_relax()
53 nval等于cmpxchg(addr, val, val | mask_to_set)不等于val循环
55  返回:0
调用者
名称描述
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