MCPcopy Create free account
hub / github.com/MemNixFS/MemNixFS / read_dm_comm

Function read_dm_comm

src/os/linux/process_list.cpp:66–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64 return phys.read_pod(pa, v);
65}
66bool read_dm_comm(const PhysicalLayer& phys, const KernelContext& k, VAddr va, std::string& out) {
67 PAddr pa;
68 if (!dm_pa(va, k, phys.max_address(), pa)) return false;
69 char buf[16] = {};
70 if (phys.read(pa, buf, sizeof(buf)) != sizeof(buf)) return false;
71 std::size_t n = 0;
72 while (n < sizeof(buf) && buf[n]) ++n;
73 out.assign(buf, n);
74 return true;
75}
76
77bool fill_process(const PhysicalLayer& phys, const KernelContext& k,
78 VAddr task_va, const Offsets& o, Process& out)

Callers 1

fill_processFunction · 0.85

Calls 3

dm_paFunction · 0.70
max_addressMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected