Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:static __attribute__((__noinline__)) char *pointer(const char *fmt, char *buf, char *end, void *ptr, struct printf_spec spec)

Type:char

Parameter:

TypeParameterName
const char *fmt
char *buf
char *end
void *ptr
struct printf_specspec
2183  Case fmt == 'S'
2184  Case fmt == 's'
2185  ptr = dereference_symbol_descriptor(ptr)
2187  Case fmt == 'B'
2188  Return symbol_string(buf, end, ptr, spec, fmt)
2189  Case fmt == 'R'
2190  Case fmt == 'r'
2191  Return resource_string(buf, end, ptr, spec, fmt)
2192  Case fmt == 'h'
2193  Return hex_string(buf, end, ptr, spec, fmt)
2194  Case fmt == 'b'
2196  Case fmt[1] == 'l'
2197  Return bitmap_list_string(buf, end, ptr, spec, fmt)
2198  Default
2199  Return bitmap_string(buf, end, ptr, spec, fmt)
2201  Case fmt == 'M'
2202  Case fmt == 'm'
2205  Return mac_address_string(buf, end, ptr, spec, fmt)
2210  Case fmt == 'I'
2214  Case fmt == 'i'
2215  Return ip_addr_string(buf, end, ptr, spec, fmt)
2216  Case fmt == 'E'
2217  Return escaped_string(buf, end, ptr, spec, fmt)
2218  Case fmt == 'U'
2219  Return uuid_string(buf, end, ptr, spec, fmt)
2220  Case fmt == 'V'
2221  Return va_format(buf, end, ptr, spec, fmt)
2222  Case fmt == 'K'
2223  Return restricted_pointer(buf, end, ptr, spec)
2224  Case fmt == 'N'
2225  Return netdev_bits(buf, end, ptr, spec, fmt)
2226  Case fmt == 'a'
2227  Return address_val(buf, end, ptr, spec, fmt)
2228  Case fmt == 'd'
2229  Return dentry_name(buf, end, ptr, spec, fmt)
2230  Case fmt == 't'
2231  Return time_and_date(buf, end, ptr, spec, fmt)
2232  Case fmt == 'C'
2233  Return clock(buf, end, ptr, spec, fmt)
2234  Case fmt == 'D'
2235  Return file_dentry_name(buf, end, ptr, spec, fmt)
2237  Case fmt == 'g'
2238  Return bdev_name(buf, end, ptr, spec, fmt)
2241  Case fmt == 'G'
2242  Return flags_string(buf, end, ptr, spec, fmt)
2243  Case fmt == 'O'
2244  Return device_node_string(buf, end, ptr, spec, fmt + 1)
2245  Case fmt == 'f'
2246  Return fwnode_string(buf, end, ptr, spec, fmt + 1)
2247  Case fmt == 'x'
2248  Return pointer_string(buf, end, ptr, spec)
2249  Case fmt == 'e'
2251  If Not IS_ERR(ptr) Then Break
2253  Return err_ptr(buf, end, ptr, spec)
2257  Return ptr_to_id(buf, end, ptr, spec)
Caller
NameDescribe
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