函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\dynamic_debug.c Create Date:2022-07-27 08:14:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:dynamic_emit_prefix

函数原型:static char *dynamic_emit_prefix(const struct _ddebug *desc, char *buf)

返回类型:char

参数:

类型参数名称
const struct _ddebug *desc
char *buf
524  pos等于0
526  buf等于'\0'
528  如果flags按位与_DPRINTK_FLAGS_INCL_TID
529  如果in_interrupt()则pos加等于snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
531  否则pos加等于snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
535  pos_after_tid等于pos
536  如果flags按位与_DPRINTK_FLAGS_INCL_MODNAMEpos加等于snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
539  如果flags按位与_DPRINTK_FLAGS_INCL_FUNCNAMEpos加等于snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
542  如果flags按位与_DPRINTK_FLAGS_INCL_LINENOpos加等于snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
545  如果pospos_after_tidpos加等于snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
547  如果pos大于等于PREFIX_SIZEbuf[PREFIX_SIZE - 1]等于'\0'
550  返回:buf
调用者
名称描述
__dynamic_pr_debug
__dynamic_dev_dbg
__dynamic_netdev_dbg
__dynamic_ibdev_dbg