Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\debug\kdb\kdb_support.c Create Date:2022-07-28 11:43:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:get_dap_lock

Proto:static int get_dap_lock(void)__acquires(dap_lock)

Type:int

Parameter:Nothing

725  dap_locked = -1
727  If dap_locked == smp_processor_id() Then count = 1
729  Else count = 1000
731  When 1 cycle
733  dap_locked = -1
734  Return 1
736  If Not count -- Then Break
738  0x10c7 is 2**32 / 1000000 (rounded up) (1000)
740  dap_locked = smp_processor_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  Return 0
Caller
NameDescribe
debug_kmalloc
debug_kfree
debug_kusage