Searched refs:mapFd (Results 1 – 3 of 3) sorted by relevance
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/bpf/include/ |
H A D | bpf_mapper.h | 46 static int32_t GetFirstKey(const int32_t mapFd, Key &key) in GetFirstKey() argument 52 bpfAttr.map_fd = BpfFdToU32(mapFd); in GetFirstKey() 72 bpfAttr.map_fd = BpfFdToU32(mapFd); in GetNextKey() 105 bpfAttr.map_fd = BpfFdToU32(mapFd); in UpdateElem() 126 bpfAttr.map_fd = BpfFdToU32(mapFd); in LookUpElem() 139 static int32_t DeleteElem(const int32_t mapFd, const Key &key) in DeleteElem() argument 145 bpfAttr.map_fd = BpfFdToU32(mapFd); in DeleteElem() 181 static uint32_t BpfFdToU32(const int32_t mapFd) in BpfFdToU32() argument 183 return static_cast<uint32_t>(mapFd); in BpfFdToU32() 216 if (mapFd >= 0) { [all …]
|
/ohos5.0/foundation/communication/netmanager_base/bpf/bpf_syscall_wrapper/ |
H A D | bpf_syscall_wrapper.h | 65 static int WriteValueToMap(const int mapFd, const Key &key, const Value &value, uint64_t flags); 75 static int LookUpElem(const int mapFd, const Key &key, const Value &value); 84 static int DeleteElem(const int mapFd, const Key &key); 94 static int GetNextKey(const int mapFd, const Key &key, Key &next_key); 103 static int GetFirstKey(const int mapFd, Key &key); 176 static inline uint32_t BpfFdToU32(const int mapFd);
|
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/bpf/src/ |
H A D | bpf_netfirewall.cpp | 102 int mapFd = NetsysBpfRingBuffer::GetRingbufFd(MAP_PATH(EVENT_MAP), 0); in RingBufferListenThread() local 103 if (mapFd < 0) { in RingBufferListenThread() 107 ring_buffer *rb = ring_buffer__new(mapFd, NetsysBpfNetFirewall::HandleEvent, NULL, NULL); in RingBufferListenThread() 116 ffrt::sync_io(mapFd); in RingBufferListenThread()
|