type_is_ptr_alloc_obj
return type_is_ptr_alloc_obj(type) && type_flag(type) & NON_OWN_REF;
if (!type_is_ptr_alloc_obj(reg->type)) {
if (!(type_is_ptr_alloc_obj(reg->type) || type_is_non_owning_ref(reg->type)) &&
} else if (type_is_ptr_alloc_obj(reg->type)) {
if (atype != BPF_READ && !type_is_ptr_alloc_obj(reg->type)) {
if (type_is_ptr_alloc_obj(reg->type)) {