Lines Matching defs:ucounts
384 static struct ucounts *sig_get_ucounts(struct task_struct *t, int sig,
387 struct ucounts *ucounts;
399 ucounts = task_ucounts(t);
400 sigpending = inc_rlimit_get_ucounts(ucounts, UCOUNT_RLIMIT_SIGPENDING,
407 dec_rlimit_put_ucounts(ucounts, UCOUNT_RLIMIT_SIGPENDING);
412 return ucounts;
415 static void __sigqueue_init(struct sigqueue *q, struct ucounts *ucounts,
420 q->ucounts = ucounts;
431 struct ucounts *ucounts = sig_get_ucounts(t, sig, override_rlimit);
434 if (!ucounts)
439 dec_rlimit_put_ucounts(ucounts, UCOUNT_RLIMIT_SIGPENDING);
443 __sigqueue_init(q, ucounts, 0);
453 if (q->ucounts) {
454 dec_rlimit_put_ucounts(q->ucounts, UCOUNT_RLIMIT_SIGPENDING);
455 q->ucounts = NULL;
1989 struct ucounts *ucounts = sig_get_ucounts(current, -1, 0);
1991 if (!ucounts)
1994 __sigqueue_init(q, ucounts, SIGQUEUE_PREALLOC);