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

Function vnode_pager_init

freebsd/vm/vnode_pager.c:132–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130static uma_zone_t vnode_pbuf_zone;
131
132static void
133vnode_pager_init(void *dummy)
134{
135
136#ifdef __LP64__
137 nvnpbufs = nswbuf * 2;
138#else
139 nvnpbufs = nswbuf / 2;
140#endif
141 TUNABLE_INT_FETCH("vm.vnode_pbufs", &nvnpbufs);
142 vnode_pbuf_zone = pbuf_zsecond_create("vnpbuf", nvnpbufs);
143}
144SYSINIT(vnode_pager, SI_SUB_CPU, SI_ORDER_ANY, vnode_pager_init, NULL);
145
146/* Create the VM system backing object for this vnode */

Callers

nothing calls this directly

Calls 1

pbuf_zsecond_createFunction · 0.85

Tested by

no test coverage detected