函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:dump_str_object_info

函数原型:static int dump_str_object_info(const char *str)

返回类型:int

参数:

类型参数名称
const char *str
1709  如果kstrtoul - convert a string to an unsigned long*@s: The start of the string. The string must be null-terminated, and may also* include a single newline before its terminating null. The first character* may also be a plus sign, but not a minus sign.则返回:负EINVAL
1711  object等于Look up an object in the object search tree and increase its use_count.
1712  如果非object
1713  打印信息("Unknown object at 0x%08lx\n", addr)
1714  返回:负EINVAL
1717  spin_lock_irqsave( & lock, flags)
1718  Print the kmemleak_object information. This function is used mainly for* debugging special cases when kmemleak operations. It must be called with* the object->lock held.
1719  spin_unlock_irqrestore( & lock, flags)
1721  Decrement the object use_count. Once the count is 0, free the object using* an RCU callback. Since put_object() may be called via the kmemleak_free() ->* delete_object() path, the delayed RCU freeing ensures that there is no
1722  返回:0
调用者
名称描述
kmemleak_writeFile write operation to configure kmemleak at run-time