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

Proto:static __attribute__((__noinline__)) char *fwnode_string(char *buf, char *end, struct fwnode_handle *fwnode, struct printf_spec spec, const char *fmt)

Type:char

Parameter:

TypeParameterName
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  If fmt != 'w' Then Return Be careful: error messages must fit into the given buffer.
2044  If check_pointer( & buf, end, fwnode, spec) Then Return buf
2047  fmt++
2050  Case fmt == 'P'
2051  buf = string(buf, end, fwnode_get_name(fwnode), str_spec)
2052  Break
2053  Case fmt == 'f'
2054  Default
2055  buf = fwnode_full_name_string(fwnode, buf, end)
2056  Break
2059  Return 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.
Caller
NameDescribe
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