函数逻辑报告

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

函数名称:seq_put_decimal_ll

函数原型:void seq_put_decimal_ll(struct seq_file *m, const char *delimiter, long long num)

返回类型:void

参数:

类型参数名称
struct seq_file *m
const char *delimiter
long longnum
780  如果count加3大于等于size则转到:overflow
783  如果delimiterdelimiter[0]则
784  如果delimiter[1]恒等于0则seq_putc(m, delimiter[0])
786  否则seq_puts(m, delimiter)
790  如果count加2大于等于size则转到:overflow
793  如果num小于0则
794  buf[count++]等于'-'
795  num等于负num
798  如果num小于10则
799  buf[count++]等于num加'0'
800  返回
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  如果非len则转到:overflow
807  count加等于len
808  返回
810  overflow :
811  seq_set_overflow(m)
调用者
名称描述
pidfd_show_fdinfopidfd_show_fdinfo - print information about a pidfd*@m: proc fdinfo file*@f: file referencing a pidfd* Pid:* This function will print the pid that a given pidfd refers to in the* pid namespace of the procfs instance