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

Function pipe_create

freebsd/kern/sys_pipe.c:677–687  ·  view source on GitHub ↗

* Initialize and allocate VM and memory for pipe. The structure * will start out zero'd from the ctor, so we just manage the kmem. */

Source from the content-addressed store, hash-verified

675 * will start out zero'd from the ctor, so we just manage the kmem.
676 */
677static int
678pipe_create(struct pipe *pipe, bool large_backing)
679{
680 int error;
681
682 error = pipespace_new(pipe, !large_backing || amountpipekva >
683 maxpipekva / 2 ? SMALL_PIPE_SIZE : PIPE_SIZE);
684 if (error == 0)
685 pipe->pipe_ino = alloc_unr64(&pipeino_unr);
686 return (error);
687}
688
689/* ARGSUSED */
690static int

Callers 1

pipe_paircreateFunction · 0.85

Calls 2

pipespace_newFunction · 0.85
alloc_unr64Function · 0.70

Tested by

no test coverage detected