Lines Matching refs:nt
1818 struct mqueue_notifier *nt;
1824 nt = mq->mq_notifier;
1825 if (nt->nt_sigev.sigev_notify != SIGEV_NONE) {
1826 p = nt->nt_proc;
1827 error = sigev_findtd(p, &nt->nt_sigev, &td);
1832 if (!KSI_ONQ(&nt->nt_ksi)) {
1833 ksiginfo_set_sigev(&nt->nt_ksi, &nt->nt_sigev);
1834 tdsendsignal(p, td, nt->nt_ksi.ksi_signo, &nt->nt_ksi);
1970 struct mqueue_notifier *nt;
1972 LIST_FOREACH(nt, &p->p_mqnotifier, nt_link) {
1973 if (nt->nt_ksi.ksi_mqd == fd)
1976 return (nt);
1980 notifier_insert(struct proc *p, struct mqueue_notifier *nt)
1982 LIST_INSERT_HEAD(&p->p_mqnotifier, nt, nt_link);
1986 notifier_delete(struct proc *p, struct mqueue_notifier *nt)
1988 LIST_REMOVE(nt, nt_link);
1989 notifier_free(nt);
1995 struct mqueue_notifier *nt;
1999 nt = notifier_search(p, fd);
2000 if (nt != NULL) {
2001 if (mq->mq_notifier == nt)
2003 sigqueue_take(&nt->nt_ksi);
2004 notifier_delete(p, nt);
2332 struct mqueue_notifier *nt, *newnt = NULL;
2378 nt = notifier_search(p, mqd);
2379 if (nt == NULL) {
2388 if (nt != NULL) {
2389 sigqueue_take(&nt->nt_ksi);
2395 nt = newnt;
2397 ksiginfo_init(&nt->nt_ksi);
2398 nt->nt_ksi.ksi_flags |= KSI_INS | KSI_EXT;
2399 nt->nt_ksi.ksi_code = SI_MESGQ;
2400 nt->nt_proc = p;
2401 nt->nt_ksi.ksi_mqd = mqd;
2402 notifier_insert(p, nt);
2404 nt->nt_sigev = *sigev;
2405 mq->mq_notifier = nt;