函数逻辑报告

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_hex_ll - put a number in hexadecimal notation*@m: seq_file identifying the buffer to which data should be written*@delimiter: a string which is printed before the number*@v: the number*@width: a minimum field width* seq_put_hex_ll(m, "", v, 8) is

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

返回类型:void

参数:

类型参数名称
struct seq_file *m
const char *delimiter
unsigned long longv
unsigned intwidth
748  如果delimiterdelimiter[0]则
749  如果delimiter[1]恒等于0则seq_putc(m, delimiter[0])
751  否则seq_puts(m, delimiter)
756  如果v恒等于0则len等于1
758  否则len等于v的长度乘8减__builtin_clzll(v)加3的和除4
761  如果len小于widthlen等于width
764  如果countlen大于size
765  seq_set_overflow(m)
766  返回
769 i大于等于0循环
770  buf[count + i]等于hex_asc[0xf & v]
771  v等于v右移4位
773  count加等于len