Home
last modified time | relevance | path

Searched refs:mapFd (Results 1 - 3 of 3) sorted by relevance

/foundation/communication/netmanager_base/services/netmanagernative/bpf/include/
H A Dbpf_mapper.h46 static int32_t GetFirstKey(const int32_t mapFd, Key &key) in GetFirstKey() argument
52 bpfAttr.map_fd = BpfFdToU32(mapFd); in GetFirstKey()
61 * @param mapFd map fd
66 static int32_t GetNextKey(const int32_t mapFd, const Key &key, Key &nextKey) in GetNextKey() argument
72 bpfAttr.map_fd = BpfFdToU32(mapFd); in GetNextKey()
93 * @param mapFd map fd
99 static int32_t UpdateElem(const int32_t mapFd, const Key &key, const Value &value, uint64_t flags) in UpdateElem() argument
105 bpfAttr.map_fd = BpfFdToU32(mapFd); in UpdateElem()
115 * @param mapFd map fd
120 static int32_t LookUpElem(const int32_t mapFd, cons argument
139 DeleteElem(const int32_t mapFd, const Key &key) DeleteElem() argument
181 BpfFdToU32(const int32_t mapFd) BpfFdToU32() argument
215 int32_t mapFd = BpfMapperImplement<Key, Value>::GetMap(pathName, flags); BpfMapper() local
[all...]
/foundation/communication/netmanager_base/bpf/bpf_syscall_wrapper/
H A Dbpf_syscall_wrapper.h59 * @param mapFd map fd
65 static int WriteValueToMap(const int mapFd, const Key &key, const Value &value, uint64_t flags);
70 * @param mapFd map fd
75 static int LookUpElem(const int mapFd, const Key &key, const Value &value);
80 * @param mapFd map fd
84 static int DeleteElem(const int mapFd, const Key &key);
89 * @param mapFd map fd
94 static int GetNextKey(const int mapFd, const Key &key, Key &next_key);
99 * @param mapFd map fd
103 static int GetFirstKey(const int mapFd, Ke
[all...]
/foundation/communication/netmanager_base/services/netmanagernative/bpf/src/
H A Dbpf_netfirewall.cpp102 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()

Completed in 3 milliseconds