Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\vsprintf.c Create Date:2022-07-28 06:12:10
Last Modify:2022-05-21 09:47:42 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:bitmap_list_string

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

Type:char

Parameter:

TypeParameterName
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  If check_pointer( & buf, end, bitmap, spec) Then Return buf
1209  rbot = cur = find the first set bit in a memory region(bitmap, nr_bits)
1210  When cur < nr_bits cycle
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  If cur < nr_bits && cur <= rtop + 1 Then Continue
1216  If Not first Then
1217  If buf < end Then buf = ','
1219  buf++
1221  first = false
1223  buf = number(buf, end, rbot, default_dec_spec)
1224  If rbot < rtop Then
1225  If buf < end Then buf = '-'
1227  buf++
1232  rbot = cur
1234  Return buf
Caller
NameDescribe
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