函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__bitmap_shift_left - logical left shift of the bits in a bitmap*@dst : destination bitmap*@src : source bitmap*@shift : shift by this many bits*@nbits : bitmap size, in bits* Shifting left (multiplying) means moving bits in the LS -> MS* direction

函数原型:void __bitmap_shift_left(unsigned long *dst, const unsigned long *src, unsigned int shift, unsigned int nbits)

返回类型:void

参数:

类型参数名称
unsigned long *dst
const unsigned long *src
unsigned intshift
unsigned intnbits
150  lim等于BITS_TO_LONGS(nbits)
151  off等于shiftBITS_PER_LONG, rem等于shift取模BITS_PER_LONG
152 k大于等于0循环
159  如果remk大于0则lower等于src[k - 1]右移BITS_PER_LONGrem
161  否则lower等于0
163  upper等于src[k]左移rem
164  dst[k + off]等于lower按位或upper
166  如果offmemset(dst, 0, off * sizeof(unsignedlong))
调用者
名称描述
__bitmap_parse__bitmap_parse - convert an ASCII hex string into a bitmap