MCPcopy
hub / github.com/cilium/ebpf / MapCreate

Function MapCreate

internal/sys/types.go:1192–1198  ·  view source on GitHub ↗
(attr *MapCreateAttr)

Source from the content-addressed store, hash-verified

1190}
1191
1192func MapCreate(attr *MapCreateAttr) (*FD, error) {
1193 fd, err := BPF(BPF_MAP_CREATE, unsafe.Pointer(attr), unsafe.Sizeof(*attr))
1194 if err != nil {
1195 return nil, err
1196 }
1197 return NewFD(int(fd))
1198}
1199
1200type MapDeleteBatchAttr struct {
1201 _ structs.HostLayout

Callers 7

createMapMethod · 0.92
syscalls.goFile · 0.92
createMapFunction · 0.92
probeMapFlagFunction · 0.92
TestTempBPFFSFunction · 0.92
detectMemcgAccountingFunction · 0.92
TestBPFFunction · 0.85

Calls 4

PointerMethod · 0.80
SizeofMethod · 0.80
BPFFunction · 0.70
NewFDFunction · 0.70

Tested by 2

TestTempBPFFSFunction · 0.74
TestBPFFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…