函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static __attribute__((__noinline__)) char *widen_string(char *buf, int n, char *end, struct printf_spec spec)

返回类型:char

参数:

类型参数名称
char *buf
intn
char *end
struct printf_specspec
583  如果此条件成立可能性大(为编译器优化)(n >= width of output field )则返回:buf
586  spaces等于 width of output field n
587  如果非 flags to number() 按位与left justified 的值则
588  move_right(buf - n, end, n, spaces)
589  返回:bufspaces
591 spaces自减循环
592  如果buf小于endbuf等于' '
594  buf先自加
596  返回:buf
调用者
名称描述
string_nocheckHandle string from a well known address.
dentry_name
device_node_string
fwnode_string