函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ip4_string

函数原型:static __attribute__((__noinline__)) char *ip4_string(char *p, const u8 *addr, const char *fmt)

返回类型:char

参数:

类型参数名称
char *p
const u8 *addr
const char *fmt
1282  leading_zeros等于fmt[0]恒等于'i'
1287  :fmt[2]恒等于'h'
1292  index等于3
1293  step等于负1
1295  退出
1296  :fmt[2]恒等于'l'
1297  index等于3
1298  step等于负1
1299  退出
1300  :fmt[2]恒等于'n'
1301  :fmt[2]恒等于'b'
1302  默认
1303  index等于0
1304  step等于1
1305  退出
1307 i小于4循环
1308  char temp[4] gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-aligned-function-attribute* gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Type-Attributes.html#index-aligned-type-attribute* gcc: https://gcc(2)
1309  digits等于This will print a single '0' even if r == 0, since we would* immediately jump to out_r where two 0s would be written but only* one of them accounted for in buf. This is needed by ip4_string* below. All other callers pass a non-zero value of r.temp
1310  如果leading_zeros
1311  如果digits小于3则p自加等于'0'
1313  如果digits小于2则p自加等于'0'
1317 digits自减循环
1318  p自加等于temp[digits]
1319  如果i小于3则p自加等于'.'
1321  index加等于step
1323  p等于'\0'
1325  返回:p
调用者
名称描述
ip6_compressed_string
ip4_addr_string
ip4_addr_string_sa