Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static __attribute__((__noinline__)) char *widen_string(char *buf, int n, char *end, struct printf_spec spec)

Type:char

Parameter:

TypeParameterName
char *buf
intn
char *end
struct printf_specspec
583  If Value is more likely to compile time(n >= width of output field ) Then Return buf
586  spaces = width of output field - n
587  If Not ( flags to number() & left justified ) Then
588  move_right(buf - n, end, n, spaces)
589  Return buf + spaces
591  When spaces-- cycle
592  If buf < end Then buf = ' '
594  ++buf
596  Return buf
Caller
NameDescribe
string_nocheckHandle string from a well known address.
dentry_name
device_node_string
fwnode_string