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

Function pipe_named_ctor

freebsd/kern/sys_pipe.c:397–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395}
396
397int
398pipe_named_ctor(struct pipe **ppipe, struct thread *td)
399{
400 struct pipepair *pp;
401 int error;
402
403 error = pipe_paircreate(td, &pp);
404 if (error != 0)
405 return (error);
406 pp->pp_rpipe.pipe_type |= PIPE_TYPE_NAMED;
407 *ppipe = &pp->pp_rpipe;
408 return (0);
409}
410
411void
412pipe_dtor(struct pipe *dpipe)

Callers

nothing calls this directly

Calls 1

pipe_paircreateFunction · 0.85

Tested by

no test coverage detected