MCPcopy Create free account
hub / github.com/ml-explore/mlx-data / dl_iterate_callback

Function dl_iterate_callback

mlx/data/core/ThreadController.cpp:24–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22namespace {
23#ifdef MLX_HAS_DL_ITERATE_PHDR
24int dl_iterate_callback(struct dl_phdr_info* info, size_t size, void* data) {
25 auto libNames = reinterpret_cast<std::vector<std::string>*>(data);
26 libNames->push_back(info->dlpi_name);
27 return 0;
28}
29std::vector<std::string> find_loaded_lib_names() {
30 std::vector<std::string> libNames;
31 dl_iterate_phdr(dl_iterate_callback, &libNames);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected