函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

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

返回类型:char

参数:

类型参数名称
const char *fmt
char *buf
char *end
void *ptr
struct printf_specspec
2183  :fmt恒等于'S'
2184  :fmt恒等于's'
2185  ptr等于dereference_symbol_descriptor(ptr)
2187  :fmt恒等于'B'
2188  返回:symbol_string(buf, end, ptr, spec, fmt)
2189  :fmt恒等于'R'
2190  :fmt恒等于'r'
2191  返回:resource_string(buf, end, ptr, spec, fmt)
2192  :fmt恒等于'h'
2193  返回:hex_string(buf, end, ptr, spec, fmt)
2194  :fmt恒等于'b'
2196  :fmt[1]恒等于'l'
2197  返回:bitmap_list_string(buf, end, ptr, spec, fmt)
2198  默认
2199  返回:bitmap_string(buf, end, ptr, spec, fmt)
2201  :fmt恒等于'M'
2202  :fmt恒等于'm'
2205  返回:mac_address_string(buf, end, ptr, spec, fmt)
2210  :fmt恒等于'I'
2214  :fmt恒等于'i'
2215  返回:ip_addr_string(buf, end, ptr, spec, fmt)
2216  :fmt恒等于'E'
2217  返回:escaped_string(buf, end, ptr, spec, fmt)
2218  :fmt恒等于'U'
2219  返回:uuid_string(buf, end, ptr, spec, fmt)
2220  :fmt恒等于'V'
2221  返回:va_format(buf, end, ptr, spec, fmt)
2222  :fmt恒等于'K'
2223  返回:restricted_pointer(buf, end, ptr, spec)
2224  :fmt恒等于'N'
2225  返回:netdev_bits(buf, end, ptr, spec, fmt)
2226  :fmt恒等于'a'
2227  返回:address_val(buf, end, ptr, spec, fmt)
2228  :fmt恒等于'd'
2229  返回:dentry_name(buf, end, ptr, spec, fmt)
2230  :fmt恒等于't'
2231  返回:time_and_date(buf, end, ptr, spec, fmt)
2232  :fmt恒等于'C'
2233  返回:clock(buf, end, ptr, spec, fmt)
2234  :fmt恒等于'D'
2235  返回:file_dentry_name(buf, end, ptr, spec, fmt)
2237  :fmt恒等于'g'
2238  返回:bdev_name(buf, end, ptr, spec, fmt)
2241  :fmt恒等于'G'
2242  返回:flags_string(buf, end, ptr, spec, fmt)
2243  :fmt恒等于'O'
2244  返回:device_node_string(buf, end, ptr, spec, fmt + 1)
2245  :fmt恒等于'f'
2246  返回:fwnode_string(buf, end, ptr, spec, fmt + 1)
2247  :fmt恒等于'x'
2248  返回:pointer_string(buf, end, ptr, spec)
2249  :fmt恒等于'e'
2251  如果非是错误退出
2253  返回:err_ptr(buf, end, ptr, spec)
2257  返回:ptr_to_id(buf, end, ptr, spec)
调用者
名称描述
vsnprintfvsnprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@args: Arguments for the format string* This function generally