函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:get_dap_lock

函数原型:static int get_dap_lock(void)__acquires(dap_lock)

返回类型:int

参数:

725  dap_locked等于负1
727  如果dap_locked恒等于当前cpu ID()则count等于1
729  否则count等于1000
731  当1循环
733  dap_locked等于负1
734  返回:1
736  如果非count自减则退出
738  0x10c7 is 2**32 / 1000000 (rounded up) (1000)
740  dap_locked等于当前cpu ID()
741  __acquire(Locking is awkward. The debug code is called from all contexts,* including non maskable interrupts. A normal spinlock is not safe* in NMI context. Try to get the debug allocator lock, if it cannot* be obtained after a second then give up)
742  返回:0
调用者
名称描述
debug_kmalloc
debug_kfree
debug_kusage