Linux Audio

Check our new training course

Loading...
v6.13.7
 1// SPDX-License-Identifier: GPL-2.0
 2
 3#include <linux/bpf.h>
 4#include <bpf/bpf_helpers.h>
 5
 
 
 6struct {
 7	__uint(type, BPF_MAP_TYPE_ARRAY);
 8	__uint(max_entries, 1);
 9	__type(key, __u32);
10	__type(value, __u64);
11	__uint(pinning, 2); /* invalid */
12} nopinmap3 SEC(".maps");
13
14char _license[] SEC("license") = "GPL";
v5.14.15
 1// SPDX-License-Identifier: GPL-2.0
 2
 3#include <linux/bpf.h>
 4#include <bpf/bpf_helpers.h>
 5
 6int _version SEC("version") = 1;
 7
 8struct {
 9	__uint(type, BPF_MAP_TYPE_ARRAY);
10	__uint(max_entries, 1);
11	__type(key, __u32);
12	__type(value, __u64);
13	__uint(pinning, 2); /* invalid */
14} nopinmap3 SEC(".maps");
15
16char _license[] SEC("license") = "GPL";