函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:debug_kfree

函数原型:void debug_kfree(void *p)

返回类型:void

参数:

类型参数名称
void *p
807  如果非p则返回
809  如果p小于debug_alloc_poolp大于等于debug_alloc_pooldebug_alloc_pool_aligned的长度则
811  kfree(p)
812  返回
814  如果非get_dap_lock()则
815  __release(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)
816  返回
818  h等于pdah_overhead
819  memset(p, r use-after-free poisoning , size - 1)
820  *psize减1的差等于d-byte of poisoning
821  caller = NULL
822  dah_used减等于size
823  h_offset等于hdebug_alloc_pool
824  如果h_offset小于dah_first
825  ffset of next header from start of pool 等于dah_first
826  dah_first等于h_offset
827  否则
830  prev等于debug_alloc_pooldah_first
832  当1循环
838  prev_offset等于prevdebug_alloc_pool
839  如果prev_offsetdah_overheadsize恒等于h_offset
840  size加等于dah_overheadsize
842  *hdah_overhead减1的差等于d-byte of poisoning
843  h等于prev
844  h_offset等于prev_offset
845  否则
850  如果h_offsetdah_overheadsize恒等于ffset of next header from start of pool
852  next等于debug_alloc_poolffset of next header from start of pool
854  size加等于dah_overheadsize
855  ffset of next header from start of pool 等于ffset of next header from start of pool
856  memset(next, r use-after-free poisoning , dah_overhead - 1)
857  *nextdah_overhead减1的差等于d-byte of poisoning
859  自旋锁解锁
调用者
名称描述
kdbnearsymkdbnearsym - Return the name of the symbol with the nearest address* less than 'addr'
kdbnearsym_cleanup