函数逻辑报告

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

函数名称:clear_bits_ll

函数原型:static int clear_bits_ll(unsigned long *addr, unsigned long mask_to_clear)

返回类型:int

参数:

类型参数名称
unsigned long *addr
unsigned longmask_to_clear
62  nval等于addr
63  循环
64  val等于nval
65  如果val按位与mask_to_clear的值不等于mask_to_clear则返回:负EBUSY
67  cpu_relax()
68 nval等于cmpxchg(addr, val, val & ~mask_to_clear)不等于val循环
70  返回:0
调用者
名称描述
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