Searched refs:mMapFd (Results 1 – 3 of 3) sorted by relevance
/aosp12/system/bpf/libbpf_android/include/bpf/ |
H A D | BpfMap.h | 53 if (map_fd >= 0) mMapFd.reset(map_fd); 61 if (map_fd >= 0) mMapFd.reset(map_fd); 66 if (getFirstMapKey(mMapFd, &firstKey)) { in getFirstKey() 89 if (findMapEntry(mMapFd, &key, &value)) { in readValue() 96 if (deleteMapEntry(mMapFd, &key)) { in deleteValue() 132 if (this != &other) mMapFd.reset(fcntl(other.mMapFd.get(), F_DUPFD_CLOEXEC, 0)); 138 mMapFd = std::move(other.mMapFd); 145 void reset(int fd) { mMapFd.reset(fd); } in reset() 147 bool isValid() const { return mMapFd != -1; } in isValid() 177 base::unique_fd mMapFd; [all …]
|
/aosp12/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
H A D | BpfMap.java | 61 private final int mMapFd; field in BpfMap 76 mMapFd = bpfFdGet(path, flag); in BpfMap() 92 mMapFd = -1; in BpfMap() 104 writeToMapEntry(mMapFd, key.writeToBytes(), value.writeToBytes(), BPF_ANY); in updateEntry() 114 writeToMapEntry(mMapFd, key.writeToBytes(), value.writeToBytes(), BPF_NOEXIST); in insertEntry() 129 writeToMapEntry(mMapFd, key.writeToBytes(), value.writeToBytes(), BPF_EXIST); in replaceEntry() 152 writeToMapEntry(mMapFd, key.writeToBytes(), value.writeToBytes(), BPF_EXIST); in insertOrReplaceEntry() 168 return deleteMapEntry(mMapFd, key.writeToBytes()); in deleteEntry() 199 if (getNextMapKey(mMapFd, key, nextKey)) return nextKey; in getNextRawKey() 231 if (findMapEntry(mMapFd, key, value)) return value; in getRawValue() [all …]
|
/aosp12/frameworks/av/media/codec2/vndk/ |
H A D | C2AllocatorIon.cpp | 141 mMapFd(-1) { in Impl() 254 if (mMapFd >= 0) { in ~Impl() 255 close(mMapFd); in ~Impl() 256 mMapFd = -1; in ~Impl() 289 if (mMapFd == -1) { in mapInternal() 291 flags, mapOffset, (unsigned char**)base, &mMapFd); in mapInternal() 296 mMapFd = -1; in mapInternal() 303 *base = mmap(nullptr, mapSize, prot, flags, mMapFd, mapOffset); in mapInternal() 306 mapSize, prot, flags, mMapFd, mapOffset, errno); in mapInternal() 322 int mMapFd; // only one for now member in android::C2AllocationIon::Impl
|