函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\seq_file.c Create Date:2022-07-29 10:40:07
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:A helper routine for putting decimal numbers without rich format of printf()

函数原型:void seq_put_decimal_ull_width(struct seq_file *m, const char *delimiter, unsigned long long num, unsigned int width)

返回类型:void

参数:

类型参数名称
struct seq_file *m
const char *delimiter
unsigned long longnum
unsigned intwidth
696  如果count加2大于等于size则转到:overflow
699  如果delimiterdelimiter[0]则
700  如果delimiter[1]恒等于0则seq_putc(m, delimiter[0])
702  否则seq_puts(m, delimiter)
706  如果非widthwidth等于1
709  如果countwidth大于等于size则转到:overflow
712  len等于Convert passed number to decimal string.* Returns the length of string. On buffer overflow, returns 0.* If speed is not important, use snprintf(). It's easy to read the code.
713  如果非len则转到:overflow
716  count加等于len
717  返回
719  overflow :
720  seq_set_overflow(m)
调用者
名称描述
seq_put_decimal_ull