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

Function shm_largepage_phys_dtor

freebsd/kern/uipc_shm.c:313–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311}
312
313static void
314shm_largepage_phys_dtor(vm_object_t object)
315{
316 int psind;
317
318 psind = object->un_pager.phys.data_val;
319 if (psind != 0) {
320 atomic_subtract_long(&count_largepages[psind],
321 object->size / (pagesizes[psind] / PAGE_SIZE));
322 vm_wire_sub(object->size);
323 } else {
324 KASSERT(object->size == 0,
325 ("largepage phys obj %p not initialized bit size %#jx > 0",
326 object, (uintmax_t)object->size));
327 }
328}
329
330static struct phys_pager_ops shm_largepage_phys_ops = {
331 .phys_pg_populate = shm_largepage_phys_populate,

Callers

nothing calls this directly

Calls 2

atomic_subtract_longFunction · 0.85
vm_wire_subFunction · 0.85

Tested by

no test coverage detected