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

Function pipeinit

freebsd/kern/sys_pipe.c:253–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251SYSINIT(vfs, SI_SUB_VFS, SI_ORDER_ANY, pipeinit, NULL);
252
253static void
254pipeinit(void *dummy __unused)
255{
256
257 pipe_zone = uma_zcreate("pipe", sizeof(struct pipepair),
258 pipe_zone_ctor, NULL, pipe_zone_init, pipe_zone_fini,
259 UMA_ALIGN_PTR, 0);
260 KASSERT(pipe_zone != NULL, ("pipe_zone not initialized"));
261 new_unrhdr64(&pipeino_unr, 1);
262 pipedev_ino = devfs_alloc_cdp_inode();
263 KASSERT(pipedev_ino > 0, ("pipe dev inode not initialized"));
264}
265
266static int
267pipe_zone_ctor(void *mem, int size, void *arg, int flags)

Callers

nothing calls this directly

Calls 2

uma_zcreateFunction · 0.85
new_unrhdr64Function · 0.85

Tested by

no test coverage detected