Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bdev_name

Proto:static __attribute__((__noinline__)) char *bdev_name(char *buf, char *end, struct block_device *bdev, struct printf_spec spec, const char *fmt)

Type:char

Parameter:

TypeParameterName
char *buf
char *end
struct block_device *bdev
struct printf_specspec
const char *fmt
927  If check_pointer( & buf, end, bdev, spec) Then Return buf
930  hd = bd_disk
931  buf = string(buf, end, name of major driver , spec)
932  If partno Then
934  If buf < end Then buf = 'p'
936  buf++
938  buf = number(buf, end, partno, spec)
940  Return buf
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