Home
last modified time | relevance | path

Searched refs:addr (Results 1051 - 1075 of 4649) sorted by relevance

1...<<41424344454647484950>>...186

/third_party/wpa_supplicant/wpa_supplicant-2.9/src/p2p/
H A Dp2p_group.c23 u8 addr[ETH_ALEN]; /* P2P Interface Address */ member
512 * @addr: MAC address of the peer device
522 static struct wpabuf * p2p_build_client_info(const u8 *addr, in p2p_build_client_info() argument
554 wpabuf_put_data(buf, addr, ETH_ALEN); in p2p_build_client_info()
572 static int p2p_group_remove_member(struct p2p_group *group, const u8 *addr) in p2p_group_remove_member() argument
582 if (os_memcmp(m->addr, addr, ETH_ALEN) == 0) in p2p_group_remove_member()
602 int p2p_group_notif_assoc(struct p2p_group *group, const u8 *addr, in p2p_group_notif_assoc() argument
610 p2p_add_device(group->p2p, addr, 0, NULL, 0, ie, len, 0); in p2p_group_notif_assoc()
615 os_memcpy(m->addr, add in p2p_group_notif_assoc()
690 p2p_group_notif_disassoc(struct p2p_group *group, const u8 *addr) p2p_group_notif_disassoc() argument
883 p2p_group_get_dev_addr(struct p2p_group *group, const u8 *addr) p2p_group_get_dev_addr() argument
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/upg/
H A Dboot_upg_check.h24 hi_u32 boot_upg_get_common_head(hi_u32 addr, hi_upg_common_head *head);
25 hi_u32 boot_upg_get_section_head(hi_u32 addr, hi_upg_section_head *section_head);
28 hi_void boot_get_start_addr_offset(hi_u32 addr, hi_u32 *offset);
/third_party/musl/src/mman/
H A Dmprotect.c5 int __mprotect(void *addr, size_t len, int prot) in __mprotect() argument
8 start = (size_t)addr & -PAGE_SIZE; in __mprotect()
9 end = (size_t)((char *)addr + len + PAGE_SIZE-1) & -PAGE_SIZE; in __mprotect()
/third_party/ltp/testcases/kernel/syscalls/quotactl/
H A Dquotactl_syscall_var.h17 static int do_quotactl(int fd, int cmd, const char *special, int id, caddr_t addr) in do_quotactl() argument
20 return quotactl(cmd, special, id, addr); in do_quotactl()
21 return quotactl_fd(fd, cmd, id, addr); in do_quotactl()
/third_party/musl/libc-test/src/functional/
H A Dtls_align.c7 unsigned long addr; member
17 if (t[i].addr & (t[i].align-1)) in main()
18 t_error("bad alignment: %s, size: %u, align: %u, addr: 0x%lx\n", in main()
19 t[i].name, t[i].size, t[i].align, t[i].addr); in main()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/sock/
H A Dsocket.cpp42 void OnConnectIncomingNative(Socket &socket, RawAddress addr, uint8_t port);
56 void OnConnectIncoming(const RawAddress &addr, uint16_t port) override
62 std::bind(&impl::OnConnectIncomingNative, socket_.pimpl.get(), std::ref(socket_), addr, port));
66 void OnIncomingDisconnected(const RawAddress &addr) override
145 void Socket::impl::OnConnectIncomingNative(Socket &socket, RawAddress addr, uint8_t port) in OnConnectIncomingNative() argument
150 addr.ConvertToUint8(socket.remoteAddr_.addr); in OnConnectIncomingNative()
153 socket.sockTransport_->AcceptConnection(addr, port); in OnConnectIncomingNative()
155 socket.sockTransport_->RejectConnection(addr, port); in OnConnectIncomingNative()
163 RequestStatus::CONNECT_ON, PROFILE_NAME_SPP, RawAddress::ConvertToString(socket.remoteAddr_.addr)); in OnConnectedNative()
381 Connect(const std::string &addr, const Uuid &uuid, int securityFlag, int &sockfd) Connect() argument
504 AddSocketInternal(BtAddr addr, DataTransport *transport, uint16_t sendMTU, uint16_t recvMTU) AddSocketInternal() argument
603 SetRemoteAddr(std::string addr) SetRemoteAddr() argument
[all...]
/third_party/python/Modules/
H A Doverlapped.c536 struct sockaddr_in addr; in _overlapped_BindLocal_impl() local
537 memset(&addr, 0, sizeof(addr)); in _overlapped_BindLocal_impl()
538 addr.sin_family = AF_INET; in _overlapped_BindLocal_impl()
539 addr.sin_port = 0; in _overlapped_BindLocal_impl()
540 addr.sin_addr.S_un.S_addr = INADDR_ANY; in _overlapped_BindLocal_impl()
541 ret = bind((SOCKET)Socket, (SOCKADDR*)&addr, sizeof(addr)) in _overlapped_BindLocal_impl()
544 struct sockaddr_in6 addr; in _overlapped_BindLocal_impl() local
545 memset(&addr, in _overlapped_BindLocal_impl()
757 make_ipv4_addr(const struct sockaddr_in *addr) make_ipv4_addr() argument
770 make_ipv6_addr(const struct sockaddr_in6 *addr) make_ipv6_addr() argument
864 PyObject *addr; _overlapped_Overlapped_getresult_impl() local
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/system/upg/
H A Dupg_check_boot_bin.c283 /* boot_addr:flashboot bin addr without ota head. boot_len: total len. */
286 upg_print("[upg check encrpt boot]addr-len:0x%x-0x%x \r\n", boot_addr, boot_len); in upg_check_encrpt_boot_code()
311 /* addr:flashboot bin addr without ota head. */
312 hi_u32 upg_check_unencrpt_boot_code(hi_u32 addr, HI_CONST boot_header *head, hi_u8 *key_part1, hi_u8 *key_part2) in upg_check_unencrpt_boot_code() argument
319 hi_u32 ret = upg_hash_one_content(addr, (head->code_section_offset + head->code_section_length), in upg_check_unencrpt_boot_code()
330 ret = hi_flash_read(addr + head->sign_offset, head->sign_length, signature); in upg_check_unencrpt_boot_code()
361 /* addr:flashboot bin addr without ota head. */
362 hi_u32 upg_verify_flashboot(hi_u32 addr, HI_CONS argument
478 upg_check_secure_boot_bin(hi_u32 addr, HI_CONST boot_header *head) upg_check_secure_boot_bin() argument
532 upg_check_boot_file(hi_u32 addr, hi_u32 len) upg_check_boot_file() argument
[all...]
/device/soc/rockchip/common/sdk_linux/include/linux/
H A Ddma-mapping.h97 void debug_dma_map_single(struct device *dev, const void *addr, unsigned long len);
102 static inline void debug_dma_map_single(struct device *dev, const void *addr, unsigned long len) in debug_dma_map_single() argument
120 void dma_unmap_page_attrs(struct device *dev, dma_addr_t addr, size_t size, enum dma_data_direction dir,
128 void dma_unmap_resource(struct device *dev, dma_addr_t addr, size_t size, enum dma_data_direction dir,
130 void dma_sync_single_for_cpu(struct device *dev, dma_addr_t addr, size_t size, enum dma_data_direction dir);
131 void dma_sync_single_for_device(struct device *dev, dma_addr_t addr, size_t size, enum dma_data_direction dir);
156 static inline void dma_unmap_page_attrs(struct device *dev, dma_addr_t addr, size_t size, enum dma_data_direction dir, in dma_unmap_page_attrs() argument
174 static inline void dma_unmap_resource(struct device *dev, dma_addr_t addr, size_t size, enum dma_data_direction dir, in dma_unmap_resource() argument
178 static inline void dma_sync_single_for_cpu(struct device *dev, dma_addr_t addr, size_t size, in dma_sync_single_for_cpu() argument
182 static inline void dma_sync_single_for_device(struct device *dev, dma_addr_t addr, size_ in dma_sync_single_for_cpu() argument
278 dma_unmap_single_attrs(struct device *dev, dma_addr_t addr, size_t size, enum dma_data_direction dir, unsigned long attrs) dma_unmap_single_attrs() argument
284 dma_sync_single_range_for_cpu(struct device *dev, dma_addr_t addr, unsigned long offset, size_t size, enum dma_data_direction dir) dma_sync_single_range_for_cpu() argument
290 dma_sync_single_range_for_device(struct device *dev, dma_addr_t addr, unsigned long offset, size_t size, enum dma_data_direction dir) dma_sync_single_range_for_device() argument
[all...]
/foundation/window/window_manager/utils/src/
H A Dsurface_draw.cpp50 auto addr = static_cast<uint8_t *>(buffer->GetVirAddr()); in DrawImage() local
51 if (!DoDraw(addr, buffer->GetWidth(), buffer->GetHeight(), imagePath)) { in DrawImage()
81 auto addr = static_cast<uint8_t *>(buffer->GetVirAddr()); in DrawImage() local
82 if (!DoDraw(addr, buffer->GetWidth(), buffer->GetHeight(), pixelMap)) { in DrawImage()
112 auto addr = static_cast<uint8_t *>(buffer->GetVirAddr()); in DrawColor() local
113 if (!DoDraw(addr, buffer->GetWidth(), buffer->GetHeight(), color)) { in DrawColor()
198 bool SurfaceDraw::DoDraw(uint8_t* addr, uint32_t width, uint32_t height, const std::string& imagePath) in DoDraw() argument
209 errno_t ret = memcpy_s(addr, addrSize, bitmap.GetPixels(), addrSize); in DoDraw()
217 bool SurfaceDraw::DoDraw(uint8_t* addr, uint32_t width, uint32_t height, std::shared_ptr<Media::PixelMap> pixelMap) in DoDraw() argument
239 errno_t ret = memcpy_s(addr, addrSiz in DoDraw()
247 DoDraw(uint8_t* addr, uint32_t width, uint32_t height, uint32_t color) DoDraw() argument
344 auto addr = static_cast<uint8_t *>(buffer->GetVirAddr()); DoDrawImageRect() local
392 auto addr = static_cast<uint8_t *>(buffer->GetVirAddr()); DrawMasking() local
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
H A Dieee802_1x.c90 MAC2STR(sta->addr), hex); in ieee802_1x_send()
99 hapd, sta->addr, buf, len, in ieee802_1x_send()
118 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_IEEE8021X, in ieee802_1x_set_sta_authorized()
123 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_IEEE8021X, in ieee802_1x_set_sta_authorized()
130 MAC2STR_SEC(sta->addr), errno); in ieee802_1x_set_sta_authorized()
233 " (%s index=%d)", MAC2STR_SEC(sm->addr), in ieee802_1x_tx_key_one()
251 MAC2STR_SEC(sta->addr)); in ieee802_1x_tx_key()
288 sta->addr, 0, 0, 1, NULL, 0, ikey, in ieee802_1x_tx_key()
365 hostapd_logger(hapd, sm->addr, HOSTAPD_MODULE_IEEE8021X, in ieee802_1x_learn_identity()
455 MAC2STR(sta->addr)); in add_common_radius_sta_attr()
2314 ieee802_1x_sta_entry_alive(void *ctx, const u8 *addr) ieee802_1x_sta_entry_alive() argument
2326 ieee802_1x_logger(void *ctx, const u8 *addr, eapol_logger_level level, const char *txt) ieee802_1x_logger() argument
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
H A Dieee802_1x.c91 MAC2STR(sta->addr), hex); in ieee802_1x_send()
100 hapd, sta->addr, buf, len, in ieee802_1x_send()
119 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_IEEE8021X, in ieee802_1x_set_sta_authorized()
124 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_IEEE8021X, in ieee802_1x_set_sta_authorized()
131 MAC2STR(sta->addr), errno); in ieee802_1x_set_sta_authorized()
233 " (%s index=%d)", MAC2STR(sm->addr), in ieee802_1x_tx_key_one()
251 MAC2STR(sta->addr)); in ieee802_1x_tx_key()
287 sta->addr, 0, 1, NULL, 0, ikey, in ieee802_1x_tx_key()
362 hostapd_logger(hapd, sm->addr, HOSTAPD_MODULE_IEEE8021X, in ieee802_1x_learn_identity()
454 MAC2STR(sta->addr)); in add_common_radius_sta_attr()
2295 ieee802_1x_sta_entry_alive(void *ctx, const u8 *addr) ieee802_1x_sta_entry_alive() argument
2306 ieee802_1x_logger(void *ctx, const u8 *addr, eapol_logger_level level, const char *txt) ieee802_1x_logger() argument
[all...]
/device/board/hisilicon/hispark_aries/uboot/secureboot_release/ddr_init/boot/hi3518ev300/
H A Dlowlevel_init_v300.c32 extern void reset_cpu(unsigned long addr);
38 static inline unsigned int readl(unsigned addr) in readl() argument
42 val = (*(volatile unsigned int *)(addr)); in readl()
46 static inline void writel(unsigned val, unsigned addr) in writel() argument
49 (*(volatile unsigned *) (addr)) = (val); in writel()
82 #define reg_get(addr) readl(addr)
83 #define reg_set(addr, val) writel(val, (unsigned int)addr)
/device/board/hisilicon/hispark_taurus/uboot/secureboot_release/ddr_init/boot/
H A Dlowlevel_init_v300.c32 extern void reset_cpu(unsigned long addr);
38 static inline unsigned int readl(unsigned addr) in readl() argument
42 val = (*(volatile unsigned int *)((uintptr_t)(addr))); in readl()
46 static inline void writel(unsigned val, unsigned addr) in writel() argument
49 (*(volatile unsigned *)((uintptr_t)(addr))) = (val); in writel()
82 #define reg_get(addr) readl(addr)
83 #define reg_set(addr, val) writel(val, (unsigned int)addr)
/drivers/hdf_core/adapter/khdf/liteos/model/storage/src/mtd/
H A Dmtd_legacy_lite.c257 ret = MtdDeviceErase((struct MtdDevice *)mtd->priv, (off_t)ops->addr, (size_t)ops->len, &failAddr); in MtdDeviceLegacyNandErase()
264 static int MtdDeviceLegacyNandRead(MtdInfoLegacy *mtd, off_t addr, size_t len, size_t *retlen, char *buf) in MtdDeviceLegacyNandRead() argument
273 ret = MtdDeviceRead((struct MtdDevice *)mtd->priv, addr, len, (uint8_t *)buf); in MtdDeviceLegacyNandRead()
278 static int MtdDeviceLegacyNandWrite(MtdInfoLegacy *mtd, off_t addr, size_t len, size_t *retlen, const char *buf) in MtdDeviceLegacyNandWrite() argument
287 ret = MtdDeviceWrite((struct MtdDevice *)mtd->priv, addr, len, (const uint8_t *)buf); in MtdDeviceLegacyNandWrite()
292 static int MtdDeviceLegacyNandReadOob(MtdInfoLegacy *mtd, off_t addr, size_t len, size_t *retlen, char *buf) in MtdDeviceLegacyNandReadOob() argument
301 ret = MtdDeviceReadWithOob((struct MtdDevice *)mtd->priv, addr, len, (uint8_t *)buf); in MtdDeviceLegacyNandReadOob()
306 static int MtdDeviceLegacyNandWriteOob(MtdInfoLegacy *mtd, off_t addr, size_t len, size_t *retlen, const char *buf) in MtdDeviceLegacyNandWriteOob() argument
315 ret = MtdDeviceWriteWithOob((struct MtdDevice *)mtd->priv, addr, len, (const uint8_t *)buf); in MtdDeviceLegacyNandWriteOob()
/foundation/communication/bluetooth/frameworks/js/napi/src/common/
H A Dnapi_native_object.cpp64 std::string addr = remoteDevice_->GetDeviceAddr(); in ToNapiValue() local
66 napi_create_string_utf8(env, addr.c_str(), addr.size(), &value); in ToNapiValue()
98 std::string addr = remoteDevice_->GetDeviceAddr(); in ToNapiValue() local
99 napi_create_string_utf8(env, addr.c_str(), addr.size(), &device); in ToNapiValue()
140 std::string addr = pairConfirmInfo_->deviceAddr; in ToNapiValue() local
141 napi_create_string_utf8(env, addr.c_str(), addr.size(), &device); in ToNapiValue()
/foundation/communication/dsoftbus/core/transmission/trans_channel/udp_negotiation/src/
H A Dtrans_udp_negotiation_exchange.c91 (void)GetJsonObjectStringItem(msg, "MY_IP", appInfo->peerData.addr, sizeof(appInfo->peerData.addr)); in TransUnpackReplyUdpInfo()
144 (void)GetJsonObjectStringItem(msg, "MY_IP", appInfo->peerData.addr, sizeof(appInfo->peerData.addr)); in TransUnpackRequestUdpInfo()
153 (void)GetJsonObjectStringItem(msg, "MY_IP", appInfo->peerData.addr, sizeof(appInfo->peerData.addr)); in TransUnpackRequestUdpInfo()
176 (void)AddStringToJsonObject(msg, "MY_IP", appInfo->myData.addr); in TransPackRequestUdpInfo()
183 (void)AddStringToJsonObject(msg, "MY_IP", appInfo->myData.addr); in TransPackRequestUdpInfo()
228 (void)AddStringToJsonObject(msg, "MY_IP", appInfo->myData.addr); in TransPackReplyUdpInfo()
/third_party/elfutils/libdw/
H A Dlibdw_findcu.c263 __libdw_findcu_addr (Dwarf *dbg, void *addr) in __libdw_findcu_addr() argument
267 if (addr >= dbg->sectiondata[IDX_debug_info]->d_buf in __libdw_findcu_addr()
268 && addr < (dbg->sectiondata[IDX_debug_info]->d_buf in __libdw_findcu_addr()
272 start = addr - dbg->sectiondata[IDX_debug_info]->d_buf; in __libdw_findcu_addr()
275 && addr >= dbg->sectiondata[IDX_debug_types]->d_buf in __libdw_findcu_addr()
276 && addr < (dbg->sectiondata[IDX_debug_types]->d_buf in __libdw_findcu_addr()
280 start = addr - dbg->sectiondata[IDX_debug_types]->d_buf; in __libdw_findcu_addr()
296 __libdw_find_split_dbg_addr (Dwarf *dbg, void *addr) in __libdw_find_split_dbg_addr() argument
299 Elf_Data fake_data = { .d_buf = addr, .d_size = 0 }; in __libdw_find_split_dbg_addr()
/third_party/libunwind/libunwind/include/tdep-hppa/
H A Dlibunwind_i.h139 unw_word_t addr; in dwarf_getfp() local
149 addr = DWARF_GET_LOC (loc); in dwarf_getfp()
150 if ((ret = (*c->as->acc.access_mem) (c->as, addr + 0, (unw_word_t *) valp, in dwarf_getfp()
154 return (*c->as->acc.access_mem) (c->as, addr + 4, (unw_word_t *) valp + 1, 0, in dwarf_getfp()
162 unw_word_t addr; in dwarf_putfp() local
172 addr = DWARF_GET_LOC (loc); in dwarf_putfp()
173 if ((ret = (*c->as->acc.access_mem) (c->as, addr + 0, (unw_word_t *) valp, in dwarf_putfp()
177 return (*c->as->acc.access_mem) (c->as, addr + 4, (unw_word_t *) valp + 1, in dwarf_putfp()
239 #define tdep_trace(cur,addr,n) (-UNW_ENOINFO)
/third_party/libunwind/libunwind/include/tdep-x86/
H A Dlibunwind_i.h153 unw_word_t addr; in dwarf_getfp() local
163 addr = DWARF_GET_LOC (loc); in dwarf_getfp()
164 if ((ret = (*c->as->acc.access_mem) (c->as, addr + 0, (unw_word_t *) valp, in dwarf_getfp()
168 return (*c->as->acc.access_mem) (c->as, addr + 4, (unw_word_t *) valp + 1, 0, in dwarf_getfp()
176 unw_word_t addr; in dwarf_putfp() local
186 addr = DWARF_GET_LOC (loc); in dwarf_putfp()
187 if ((ret = (*c->as->acc.access_mem) (c->as, addr + 0, (unw_word_t *) valp, in dwarf_putfp()
191 return (*c->as->acc.access_mem) (c->as, addr + 4, (unw_word_t *) valp + 1, in dwarf_putfp()
253 #define tdep_trace(cur,addr,n) (-UNW_ENOINFO)
/third_party/libuv/test/
H A Decho-server.c232 const struct sockaddr* addr, in on_recv()
243 ASSERT_EQ(addr->sa_family, AF_INET); in on_recv()
248 ASSERT_LE(0, uv_udp_send(req, handle, &sndbuf, 1, addr, on_send)); in on_recv()
252 struct sockaddr_in addr; in tcp4_echo_start() local
255 ASSERT_OK(uv_ip4_addr("127.0.0.1", port, &addr)); in tcp4_echo_start()
267 r = uv_tcp_bind(&tcpServer, (const struct sockaddr*) &addr, 0); in tcp4_echo_start()
321 struct sockaddr_in addr; in udp4_echo_start() local
324 ASSERT_OK(uv_ip4_addr("127.0.0.1", port, &addr)); in udp4_echo_start()
334 r = uv_udp_bind(&udpServer, (const struct sockaddr*) &addr, 0); in udp4_echo_start()
229 on_recv(uv_udp_t* handle, ssize_t nread, const uv_buf_t* rcvbuf, const struct sockaddr* addr, unsigned flags) on_recv() argument
H A Dtest-getsockname.c80 static void check_sockname(struct sockaddr* addr, const char* compare_ip, in check_sockname() argument
82 struct sockaddr_in check_addr = *(struct sockaddr_in*) addr; in check_sockname()
171 struct sockaddr_in addr; in tcp_listener() local
176 ASSERT_OK(uv_ip4_addr("0.0.0.0", server_port, &addr)); in tcp_listener()
184 r = uv_tcp_bind(&tcpServer, (const struct sockaddr*) &addr, 0); in tcp_listener()
242 const struct sockaddr* addr, in udp_recv()
273 struct sockaddr_in addr; in udp_listener() local
278 ASSERT_OK(uv_ip4_addr("0.0.0.0", server_port, &addr)); in udp_listener()
286 r = uv_udp_bind(&udpServer, (const struct sockaddr*) &addr, 0); in udp_listener()
239 udp_recv(uv_udp_t* handle, ssize_t nread, const uv_buf_t* buf, const struct sockaddr* addr, unsigned flags) udp_recv() argument
/third_party/libunwind/libunwind/include/tdep-sh/
H A Dlibunwind_i.h140 unw_word_t addr; in dwarf_getfp() local
150 addr = DWARF_GET_LOC (loc); in dwarf_getfp()
151 if ((ret = (*c->as->acc.access_mem) (c->as, addr + 0, (unw_word_t *) valp, in dwarf_getfp()
155 return (*c->as->acc.access_mem) (c->as, addr + 4, (unw_word_t *) valp + 1, 0, in dwarf_getfp()
163 unw_word_t addr; in dwarf_putfp() local
173 addr = DWARF_GET_LOC (loc); in dwarf_putfp()
174 if ((ret = (*c->as->acc.access_mem) (c->as, addr + 0, (unw_word_t *) valp, in dwarf_putfp()
178 return (*c->as->acc.access_mem) (c->as, addr + 4, (unw_word_t *) valp + 1, in dwarf_putfp()
240 #define tdep_trace(cur,addr,n) (-UNW_ENOINFO)
/third_party/node/src/large_pages/
H A Dnode_large_page.cc137 inline uintptr_t hugepage_align_up(uintptr_t addr) { in hugepage_align_up() argument
138 return (((addr) + (hps) - 1) & ~((hps) - 1)); in hugepage_align_up()
141 inline uintptr_t hugepage_align_down(uintptr_t addr) { in hugepage_align_down() argument
142 return ((addr) & ~((hps) - 1)); in hugepage_align_down()
230 vm_address_t addr = 0UL; in FindNodeTextRegion() local
235 if (vm_region_recurse_64(mach_task_self(), &addr, &size, &depth, in FindNodeTextRegion()
244 char* start = reinterpret_cast<char*>(hugepage_align_up(addr)); in FindNodeTextRegion()
245 char* end = reinterpret_cast<char*>(hugepage_align_down(addr+size)); in FindNodeTextRegion()
255 addr += size; in FindNodeTextRegion()
/third_party/musl/Benchmark/musl/
H A Dlibc_mman.cpp204 int *addr = (int*)mmap(nullptr, length, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANONYMOUS, -1, 0); in Bm_function_Madvise() local
206 benchmark::DoNotOptimize(madvise(addr, length, type)); in Bm_function_Madvise()
208 madvise(addr, length, MADV_NORMAL); in Bm_function_Madvise()
209 munmap(addr, length); in Bm_function_Madvise()
282 void *addr = mmap(nullptr, length, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in Bm_function_Mlock_Munlock() local
283 if (addr == MAP_FAILED) { in Bm_function_Mlock_Munlock()
288 if (mlock(addr, length) != 0) { in Bm_function_Mlock_Munlock()
292 if (munlock(addr, length) != 0) { in Bm_function_Mlock_Munlock()
296 munmap(addr, length); in Bm_function_Mlock_Munlock()

Completed in 21 milliseconds

1...<<41424344454647484950>>...186