函数逻辑报告

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

函数名称:fwnode_string

函数原型:static __attribute__((__noinline__)) char *fwnode_string(char *buf, char *end, struct fwnode_handle *fwnode, struct printf_spec spec, const char *fmt)

返回类型:char

参数:

类型参数名称
char *buf
char *end
struct fwnode_handle *fwnode
struct printf_specspec
const char *fmt
2036  str_spec等于spec
2037  buf_start等于buf
2039  width of output field 等于负1
2041  如果fmt不等于'w'则返回:Be careful: error messages must fit into the given buffer.
2044  如果check_pointer( & buf, end, fwnode, spec)则返回:buf
2047  fmt自加
2050  :fmt恒等于'P'
2051  buf等于string(buf, end, fwnode_get_name(fwnode), str_spec)
2052  退出
2053  :fmt恒等于'f'
2054  默认
2055  buf等于fwnode_full_name_string(fwnode, buf, end)
2056  退出
2059  返回:Handle field width padding for a string.*@buf: current buffer position*@n: length of string*@end: end of output buffer*@spec: for field width and flags* Returns: new buffer position after padding.
调用者
名称描述
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