Function report |
Source Code:lib\vsprintf.c |
Create Date:2022-07-28 06:12:09 |
Last Modify:2022-05-21 09:47:42 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:bitmap_string
Proto:static __attribute__((__noinline__)) char *bitmap_string(char *buf, char *end, unsigned long *bitmap, struct printf_spec spec, const char *fmt)
Type:char
Parameter:
Type | Parameter | Name |
---|---|---|
char * | buf | |
char * | end | |
unsigned long * | bitmap | |
struct printf_spec | spec | |
const char * | fmt |
1157 | CHUNKSZ = 32 |
1158 | 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) |
1160 | bool first = true |
1166 | spec = (struct printf_spec){ flags to number() = use lowercase in hex (must be 32 == 0x20) | pad with zero, must be 16 == '0' - ' ' , number base, 8, 10 or 16 only = 16} |
1172 | i = @a is a power of 2 value (nr_bits, CHUNKSZ) - CHUNKSZ |
1178 | word = i / BITS_PER_LONG |
1179 | bit = i % BITS_PER_LONG |
1182 | If Not first Then |
1187 | first = false |
1189 | width of output field = DIV_ROUND_UP(chunksz, 4) |
1194 | Return buf |
Name | Describe |
---|---|
pointer | Show 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 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |