Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\seq_file.c Create Date:2022-07-28 20:09:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:A helper routine for putting decimal numbers without rich format of printf()

Proto:void seq_put_decimal_ull_width(struct seq_file *m, const char *delimiter, unsigned long long num, unsigned int width)

Type:void

Parameter:

TypeParameterName
struct seq_file *m
const char *delimiter
unsigned long longnum
unsigned intwidth
696  If count + 2 >= size Then Go to overflow
699  If delimiter && delimiter[0] Then
700  If delimiter[1] == 0 Then seq_putc(m, delimiter[0])
702  Else seq_puts(m, delimiter)
706  If Not width Then width = 1
709  If count + width >= size Then Go to 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  If Not len Then Go to overflow
716  count += len
717  Return
719  overflow :
720  seq_set_overflow(m)
Caller
NameDescribe
seq_put_decimal_ull