函数源码

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source File:kernel\bpf\verifier.c Create Date:2022-07-27 14:09:03
首页 Copyright©Brick

378
379
380
381
382
383
384
static bool reg_type_may_be_null(enum bpf_reg_type type)
{
    return type == PTR_TO_MAP_VALUE_OR_NULL ||
           type == PTR_TO_SOCKET_OR_NULL ||
           type == PTR_TO_SOCK_COMMON_OR_NULL ||
           type == PTR_TO_TCP_SOCK_OR_NULL;
}