xref: /kernel/linux/linux-6.6/kernel/bpf/map_in_map.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/kernel/bpf/
162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
262306a36Sopenharmony_ci/* Copyright (c) 2017 Facebook
362306a36Sopenharmony_ci */
462306a36Sopenharmony_ci#ifndef __MAP_IN_MAP_H__
562306a36Sopenharmony_ci#define __MAP_IN_MAP_H__
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci#include <linux/types.h>
862306a36Sopenharmony_ci
962306a36Sopenharmony_cistruct file;
1062306a36Sopenharmony_cistruct bpf_map;
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_cistruct bpf_map *bpf_map_meta_alloc(int inner_map_ufd);
1362306a36Sopenharmony_civoid bpf_map_meta_free(struct bpf_map *map_meta);
1462306a36Sopenharmony_civoid *bpf_map_fd_get_ptr(struct bpf_map *map, struct file *map_file,
1562306a36Sopenharmony_ci			 int ufd);
1662306a36Sopenharmony_civoid bpf_map_fd_put_ptr(struct bpf_map *map, void *ptr, bool need_defer);
1762306a36Sopenharmony_ciu32 bpf_map_fd_sys_lookup_elem(void *ptr);
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ci#endif
20

Indexes created Thu Nov 07 10:32:03 CST 2024