Debian Codegraph @

internal/efw/structs.go

raw symbols SCIP
1 //go:build windows
2
3 package efw
4
5 import "golang.org/x/sys/windows"
6
7 // https://github.com/microsoft/ebpf-for-windows/blob/95267a53b26c68a94145d1731e2a4c8b546034c3/include/ebpf_structs.h#L366
8 const _BPF_OBJ_NAME_LEN = 64
9
10 // See https://github.com/microsoft/ebpf-for-windows/blob/95267a53b26c68a94145d1731e2a4c8b546034c3/include/ebpf_structs.h#L372-L386
11 type BpfMapInfo struct {
12 _ uint32 ///< Map ID.
13 _ uint32 ///< Type of map.
14 _ uint32 ///< Size in bytes of a map key.
15 _ uint32 ///< Size in bytes of a map value.
16 _ uint32 ///< Maximum number of entries allowed in the map.
17 Name [_BPF_OBJ_NAME_LEN]byte ///< Null-terminated map name.
18 _ uint32 ///< Map flags.
19
20 _ uint32 ///< ID of inner map template.
21 _ uint32 ///< Number of pinned paths.
22 }
23
24 // See https://github.com/microsoft/ebpf-for-windows/blob/95267a53b26c68a94145d1731e2a4c8b546034c3/include/ebpf_structs.h#L396-L410
25 type BpfProgInfo struct {
26 _ uint32 ///< Program ID.
27 _ uint32 ///< Program type, if a cross-platform type.
28 _ uint32 ///< Number of maps associated with this program.
29 _ uintptr ///< Pointer to caller-allocated array to fill map IDs into.
30 Name [_BPF_OBJ_NAME_LEN]byte ///< Null-terminated map name.
31
32 _ windows.GUID ///< Program type UUID.
33 _ windows.GUID ///< Attach type UUID.
34 _ uint32 ///< Number of pinned paths.
35 _ uint32 ///< Number of attached links.
36 }