MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vm_phys_domain

Function vm_phys_domain

freebsd/vm/vm_phys.h:91–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89vm_paddr_t vm_phys_avail_size(int i);
90
91static inline int
92vm_phys_domain(vm_paddr_t pa)
93{
94#ifdef NUMA
95 int i;
96
97 if (vm_ndomains == 1)
98 return (0);
99 for (i = 0; mem_affinity[i].end != 0; i++)
100 if (mem_affinity[i].start <= pa &&
101 mem_affinity[i].end >= pa)
102 return (mem_affinity[i].domain);
103 return (-1);
104#else
105 return (0);
106#endif
107}
108
109#endif /* _KERNEL */
110#endif /* !_VM_PHYS_H_ */

Callers 5

pc_to_domainFunction · 0.85
pmap_page_array_startupFunction · 0.85
mp_realloc_pcpuFunction · 0.85
thread_initFunction · 0.85
item_domainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected