BPF_MAP_TYPE_STRUCT_OPS
BPF_MAP_TYPE(BPF_MAP_TYPE_STRUCT_OPS, bpf_struct_ops_map_ops)
return map->map_type == BPF_MAP_TYPE_STRUCT_OPS &&
if (attr->map_type != BPF_MAP_TYPE_STRUCT_OPS ||
case BPF_MAP_TYPE_STRUCT_OPS:
map->map_type == BPF_MAP_TYPE_STRUCT_OPS) {
if (map->map_type == BPF_MAP_TYPE_STRUCT_OPS || !IS_ERR_OR_NULL(map->record))
map->map_type == BPF_MAP_TYPE_STRUCT_OPS) {
} else if (map->map_type == BPF_MAP_TYPE_STRUCT_OPS) {
if (map->map_type == BPF_MAP_TYPE_STRUCT_OPS)
if (map->map_type != BPF_MAP_TYPE_STRUCT_OPS) {
if (map->map_type == BPF_MAP_TYPE_STRUCT_OPS) {
if (bpf_map__type(map) != BPF_MAP_TYPE_STRUCT_OPS)
if (bpf_map__type(map) != BPF_MAP_TYPE_STRUCT_OPS)
if (bpf_map__type(map) == BPF_MAP_TYPE_STRUCT_OPS)
if (bpf_map__type(map) != BPF_MAP_TYPE_STRUCT_OPS)
if (bpf_map__type(map) == BPF_MAP_TYPE_STRUCT_OPS) {
if (populate_links && bpf_map__type(map) == BPF_MAP_TYPE_STRUCT_OPS) {
if (info->type == BPF_MAP_TYPE_STRUCT_OPS &&
if (info->type != BPF_MAP_TYPE_STRUCT_OPS) {
if (bpf_map__type(map) != BPF_MAP_TYPE_STRUCT_OPS)
return map->def.type == BPF_MAP_TYPE_STRUCT_OPS;
map->def.type = BPF_MAP_TYPE_STRUCT_OPS;
[BPF_MAP_TYPE_STRUCT_OPS] = "struct_ops",
case BPF_MAP_TYPE_STRUCT_OPS:
case BPF_MAP_TYPE_STRUCT_OPS:
.maps = bit(BPF_MAP_TYPE_STRUCT_OPS),
.maps = bit(BPF_MAP_TYPE_STRUCT_OPS),
.maps = bit(BPF_MAP_TYPE_STRUCT_OPS),
.maps = bit(BPF_MAP_TYPE_STRUCT_OPS),
bpf_map__type(map) != BPF_MAP_TYPE_STRUCT_OPS)
case BPF_MAP_TYPE_STRUCT_OPS: