函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\vsprintf.c Create Date:2022-07-27 07:09:28
Last Modify:2022-05-21 09:47:42 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mac_address_string

函数原型:static __attribute__((__noinline__)) char *mac_address_string(char *buf, char *end, u8 *addr, struct printf_spec spec, const char *fmt)

返回类型:char

参数:

类型参数名称
char *buf
char *end
u8 *addr
struct printf_specspec
const char *fmt
1242  p等于mac_addr
1245  bool reversed = false
1247  如果check_pointer( & buf, end, addr, spec)则返回:buf
1251  :fmt[1]恒等于'F'
1252  separator等于'-'
1253  退出
1255  :fmt[1]恒等于'R'
1256  reversed = true
1259  默认
1260  separator等于':'
1261  退出
1264 i小于6循环
1265  如果reversedp等于hex_byte_pack(p, addr[5 - i])
1267  否则p等于hex_byte_pack(p, addr[i])
1270  如果fmt[0]恒等于'M'且i不等于5则p自加等于separator
1273  p等于'\0'
1275  返回:Handle string from a well known address.
调用者
名称描述
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