Lines Matching defs:nt
1815 struct mqueue_notifier *nt;
1821 nt = mq->mq_notifier;
1822 if (nt->nt_sigev.sigev_notify != SIGEV_NONE) {
1823 p = nt->nt_proc;
1824 error = sigev_findtd(p, &nt->nt_sigev, &td);
1829 if (!KSI_ONQ(&nt->nt_ksi)) {
1830 ksiginfo_set_sigev(&nt->nt_ksi, &nt->nt_sigev);
1831 tdsendsignal(p, td, nt->nt_ksi.ksi_signo, &nt->nt_ksi);
1967 struct mqueue_notifier *nt;
1969 LIST_FOREACH(nt, &p->p_mqnotifier, nt_link) {
1970 if (nt->nt_ksi.ksi_mqd == fd)
1973 return (nt);
1977 notifier_insert(struct proc *p, struct mqueue_notifier *nt)
1979 LIST_INSERT_HEAD(&p->p_mqnotifier, nt, nt_link);
1983 notifier_delete(struct proc *p, struct mqueue_notifier *nt)
1985 LIST_REMOVE(nt, nt_link);
1986 notifier_free(nt);
1992 struct mqueue_notifier *nt;
1996 nt = notifier_search(p, fd);
1997 if (nt != NULL) {
1998 if (mq->mq_notifier == nt)
2000 sigqueue_take(&nt->nt_ksi);
2001 notifier_delete(p, nt);
2358 struct mqueue_notifier *nt, *newnt = NULL;
2404 nt = notifier_search(p, mqd);
2405 if (nt == NULL) {
2414 if (nt != NULL) {
2415 sigqueue_take(&nt->nt_ksi);
2421 nt = newnt;
2423 ksiginfo_init(&nt->nt_ksi);
2424 nt->nt_ksi.ksi_flags |= KSI_INS | KSI_EXT;
2425 nt->nt_ksi.ksi_code = SI_MESGQ;
2426 nt->nt_proc = p;
2427 nt->nt_ksi.ksi_mqd = mqd;
2428 notifier_insert(p, nt);
2430 nt->nt_sigev = *sigev;
2431 mq->mq_notifier = nt;