函数源码

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source File:mm\util.c Create Date:2022-07-27 15:45:45
首页 Copyright©Brick

304
305
306
307
308
309
310
/* Check if the vma is being used as a stack by this task */
int vma_is_stack_for_current(struct vm_area_struct *vma)
{
    struct task_struct * __maybe_unused t = current;
 
    return (vma->vm_start <= KSTK_ESP(t) && vma->vm_end >= KSTK_ESP(t));
}