Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\vsprintf.c Create Date:2022-07-28 06:12:19
Last Modify:2022-05-21 09:47:42 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:flags_string

Proto:static __attribute__((__noinline__)) char *flags_string(char *buf, char *end, void *flags_ptr, struct printf_spec spec, const char *fmt)

Type:char

Parameter:

TypeParameterName
char *buf
char *end
void *flags_ptr
struct printf_specspec
const char *fmt
1889  If check_pointer( & buf, end, flags_ptr, spec) Then Return buf
1893  Case fmt[1] == 'p'
1894  flags = flags_ptr
1896  flags &= (1UL << NR_PAGEFLAGS) - 1
1897  names = pageflag_names
1898  Break
1899  Case fmt[1] == 'v'
1900  flags = flags_ptr
1901  names = vmaflag_names
1902  Break
1903  Case fmt[1] == 'g'
1904  flags = flags_ptr
1905  names = gfpflag_names
1906  Break
1907  Default
1908  Return Be careful: error messages must fit into the given buffer.
1911  Return format_flags(buf, end, flags, names)
Caller
NameDescribe
pointerShow a '%p' thing. A kernel extension is that the '%p' is followed* by an extra set of alphanumeric characters that are extended format* specifiers.* Please update scripts/checkpatch.pl when adding/removing conversion* characters