函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\vsprintf.c Create Date:2022-07-27 07:09:27
Last Modify:2022-05-21 09:47:42 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:bitmap_list_string

函数原型:static __attribute__((__noinline__)) char *bitmap_list_string(char *buf, char *end, unsigned long *bitmap, struct printf_spec spec, const char *fmt)

返回类型:char

参数:

类型参数名称
char *buf
char *end
unsigned long *bitmap
struct printf_specspec
const char *fmt
1201  nr_bits等于max_t - return maximum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(int, width of output field , 0)
1204  bool first = true
1206  如果check_pointer( & buf, end, bitmap, spec)则返回:buf
1209  rbot等于cur等于find_first_bit(bitmap, nr_bits)
1210 cur小于nr_bits循环
1211  rtop等于cur
1212  cur等于d_next_bit - find the next set bit in a memory region*@addr: The address to base the search on*@offset: The bitnumber to start searching at*@size: The bitmap size in bits* Returns the bit number for the next set bit* If no bits are set, returns @size.
1213  如果cur小于nr_bitscur小于等于rtop加1则继续下一循环
1216  如果非first
1217  如果buf小于endbuf等于','
1219  buf自加
1221  first = false
1223  buf等于number(buf, end, rbot, default_dec_spec)
1224  如果rbot小于rtop
1225  如果buf小于endbuf等于'-'
1227  buf自加
1232  rbot等于cur
1234  返回:buf
调用者
名称描述
pointerShow a '%p' thing. A kernel extension is that the '%p' is followed* by an extra set of alphanumeric characters that are extended format* specifiers.* Please update scripts/checkpatch.pl when adding/removing conversion* characters