Lines Matching refs:pinning
687 unsigned int pinning;
910 uint32_t pinning)
914 entry = ctx->ht[pinning & (ARRAY_SIZE(ctx->ht) - 1)];
915 while (entry && entry->pinning != pinning)
922 uint32_t pinning)
924 switch (pinning) {
931 return !bpf_custom_pinning(ctx, pinning);
936 const struct bpf_elf_ctx *ctx, uint32_t pinning)
938 switch (pinning) {
949 bpf_custom_pinning(ctx, pinning), name);
955 uint32_t pinning)
959 if (bpf_no_pinning(ctx, pinning) || !bpf_get_tc_dir())
962 bpf_make_pathname(pathname, sizeof(pathname), name, ctx, pinning);
1013 const struct bpf_elf_ctx *ctx, uint32_t pinning)
1019 if (bpf_no_pinning(ctx, pinning) || !bpf_get_tc_dir())
1022 if (pinning == PIN_OBJECT_NS)
1024 else if ((tmp = bpf_custom_pinning(ctx, pinning)))
1029 bpf_make_pathname(pathname, sizeof(pathname), name, ctx, pinning);
1038 /* We can add pinning here later as well, same as bpf_map_attach(). */
1060 fd = bpf_probe_pinned(name, ctx, map->pinning);
1081 bpf_dump_error("Map \'%s\' (type:%u id:%u pinning:%u "
1083 name, map->type, map->id, map->pinning,
1091 ret = bpf_place_pinned(fd, name, ctx, map->pinning);
1495 static bool bpf_pinning_reserved(uint32_t pinning)
1497 switch (pinning) {
1511 uint32_t pinning;
1520 while ((ret = bpf_read_pin_mapping(fp, &pinning, subpath))) {
1528 if (bpf_pinning_reserved(pinning)) {
1530 "ignoring!\n", db_file, pinning);
1540 entry->pinning = pinning;
1548 entry->next = ctx->ht[pinning & (ARRAY_SIZE(ctx->ht) - 1)];
1549 ctx->ht[pinning & (ARRAY_SIZE(ctx->ht) - 1)] = entry;