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

Function vm_pager_bufferinit

freebsd/vm/vm_pager.c:181–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179static int nswbuf_max;
180
181void
182vm_pager_bufferinit(void)
183{
184
185 /* Main zone for paging bufs. */
186 pbuf_zone = uma_zcreate("pbuf",
187 sizeof(struct buf) + PBUF_PAGES * sizeof(vm_page_t),
188 pbuf_ctor, pbuf_dtor, pbuf_init, NULL, UMA_ALIGN_CACHE,
189 UMA_ZONE_NOFREE);
190 /* Few systems may still use this zone directly, so it needs a limit. */
191 nswbuf_max += uma_zone_set_max(pbuf_zone, NSWBUF_MIN);
192}
193
194uma_zone_t
195pbuf_zsecond_create(const char *name, int max)

Callers 5

cpu_startupFunction · 0.85
cpu_startupFunction · 0.85
cpu_startupFunction · 0.85
cpu_startupFunction · 0.85
cpu_startupFunction · 0.85

Calls 2

uma_zcreateFunction · 0.85
uma_zone_set_maxFunction · 0.85

Tested by

no test coverage detected