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_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

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

Type:void

Parameter:

TypeParameterName
struct seq_file *m
const char *delimiter
unsigned long longv
unsigned intwidth
748  If delimiter && delimiter[0] Then
749  If delimiter[1] == 0 Then seq_putc(m, delimiter[0])
751  Else seq_puts(m, delimiter)
756  If v == 0 Then len = 1
758  Else len = ( size of v * 8 - __builtin_clzll(v) + 3) / 4
761  If len < width Then len = width
764  If count + len > size Then
765  seq_set_overflow(m)
766  Return
769  When i >= 0 cycle
770  buf[count + i] = hex_asc[0xf & v]
771  v = v >> 4
773  count += len