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

Function sigqueue_start

freebsd/kern/kern_sig.c:249–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247sigset_t fastblock_mask;
248
249static void
250sigqueue_start(void)
251{
252 ksiginfo_zone = uma_zcreate("ksiginfo", sizeof(ksiginfo_t),
253 NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, 0);
254 uma_prealloc(ksiginfo_zone, preallocate_siginfo);
255 p31b_setcfg(CTL_P1003_1B_REALTIME_SIGNALS, _POSIX_REALTIME_SIGNALS);
256 p31b_setcfg(CTL_P1003_1B_RTSIG_MAX, SIGRTMAX - SIGRTMIN + 1);
257 p31b_setcfg(CTL_P1003_1B_SIGQUEUE_MAX, max_pending_per_proc);
258 SIGFILLSET(fastblock_mask);
259 SIG_CANTMASK(fastblock_mask);
260}
261
262ksiginfo_t *
263ksiginfo_alloc(int wait)

Callers

nothing calls this directly

Calls 3

uma_zcreateFunction · 0.85
uma_preallocFunction · 0.85
p31b_setcfgFunction · 0.85

Tested by

no test coverage detected