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

Function sigacts_alloc

freebsd/kern/kern_sig.c:3982–3991  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3980}
3981
3982struct sigacts *
3983sigacts_alloc(void)
3984{
3985 struct sigacts *ps;
3986
3987 ps = malloc(sizeof(struct sigacts), M_SUBPROC, M_WAITOK | M_ZERO);
3988 refcount_init(&ps->ps_refcnt, 1);
3989 mtx_init(&ps->ps_mtx, "sigacts", NULL, MTX_DEF);
3990 return (ps);
3991}
3992
3993void
3994sigacts_free(struct sigacts *ps)

Callers 4

do_forkFunction · 0.85
do_execveFunction · 0.85
proc0_initFunction · 0.85
proc0_initFunction · 0.85

Calls 3

mallocFunction · 0.85
refcount_initFunction · 0.85
mtx_initFunction · 0.85

Tested by

no test coverage detected