函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ip_addr_string

函数原型:static __attribute__((__noinline__)) char *ip_addr_string(char *buf, char *end, const void *ptr, struct printf_spec spec, const char *fmt)

返回类型:char

参数:

类型参数名称
char *buf
char *end
const void *ptr
struct printf_specspec
const char *fmt
1555  如果check_pointer( & buf, end, ptr, spec)则返回:buf
1559  :fmt[1]恒等于'6'
1560  返回:ip6_addr_string(buf, end, ptr, spec, fmt)
1561  :fmt[1]恒等于'4'
1562  返回:ip4_addr_string(buf, end, ptr, spec, fmt)
1563  :fmt[1]恒等于'S'
1564  const union{struct sockaddr raw;struct sockaddr_in v4;struct sockaddr_in6 v6;} * sa = ptr
1572  返回:ip4_addr_string_sa(buf, end, & v4, spec, fmt)
1574  返回:ip6_addr_string_sa(buf, end, & v6, spec, fmt)
1575  默认
1580  err_fmt_msg等于如果fmt[0]恒等于'i'则"(%pi?)"否则"(%pI?)"
1581  返回:Be careful: error messages must fit into the given buffer.
调用者
名称描述
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