Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:seq_put_decimal_ll

Proto:void seq_put_decimal_ll(struct seq_file *m, const char *delimiter, long long num)

Type:void

Parameter:

TypeParameterName
struct seq_file *m
const char *delimiter
long longnum
780  If count + 3 >= size Then Go to overflow
783  If delimiter && delimiter[0] Then
784  If delimiter[1] == 0 Then seq_putc(m, delimiter[0])
786  Else seq_puts(m, delimiter)
790  If count + 2 >= size Then Go to overflow
793  If num < 0 Then
794  buf[count++] = '-'
795  num = -num
798  If num < 10 Then
799  buf[count++] = num + '0'
800  Return
803  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.
804  If Not len Then Go to overflow
807  count += len
808  Return
810  overflow :
811  seq_set_overflow(m)