Lines Matching refs:knotif
1422 struct seccomp_knotif *knotif; in seccomp_notify_detach() local
1433 list_for_each_entry(knotif, &filter->notif->notifications, list) { in seccomp_notify_detach()
1434 if (knotif->state == SECCOMP_NOTIFY_REPLIED) in seccomp_notify_detach()
1437 knotif->state = SECCOMP_NOTIFY_REPLIED; in seccomp_notify_detach()
1438 knotif->error = -ENOSYS; in seccomp_notify_detach()
1439 knotif->val = 0; in seccomp_notify_detach()
1446 complete(&knotif->ready); in seccomp_notify_detach()
1518 struct seccomp_knotif *knotif = NULL, *cur; in seccomp_notify_recv() local
1538 knotif = cur; in seccomp_notify_recv()
1548 if (!knotif) { in seccomp_notify_recv()
1553 unotif.id = knotif->id; in seccomp_notify_recv()
1554 unotif.pid = task_pid_vnr(knotif->task); in seccomp_notify_recv()
1555 unotif.data = *(knotif->data); in seccomp_notify_recv()
1557 knotif->state = SECCOMP_NOTIFY_SENT; in seccomp_notify_recv()
1573 knotif = find_notification(filter, unotif.id); in seccomp_notify_recv()
1574 if (knotif) { in seccomp_notify_recv()
1576 if (should_sleep_killable(filter, knotif)) in seccomp_notify_recv()
1577 complete(&knotif->ready); in seccomp_notify_recv()
1578 knotif->state = SECCOMP_NOTIFY_INIT; in seccomp_notify_recv()
1592 struct seccomp_knotif *knotif; in seccomp_notify_send() local
1609 knotif = find_notification(filter, resp.id); in seccomp_notify_send()
1610 if (!knotif) { in seccomp_notify_send()
1616 if (knotif->state != SECCOMP_NOTIFY_SENT) { in seccomp_notify_send()
1622 knotif->state = SECCOMP_NOTIFY_REPLIED; in seccomp_notify_send()
1623 knotif->error = resp.error; in seccomp_notify_send()
1624 knotif->val = resp.val; in seccomp_notify_send()
1625 knotif->flags = resp.flags; in seccomp_notify_send()
1627 complete_on_current_cpu(&knotif->ready); in seccomp_notify_send()
1629 complete(&knotif->ready); in seccomp_notify_send()
1638 struct seccomp_knotif *knotif; in seccomp_notify_id_valid() local
1649 knotif = find_notification(filter, id); in seccomp_notify_id_valid()
1650 if (knotif && knotif->state == SECCOMP_NOTIFY_SENT) in seccomp_notify_id_valid()
1680 struct seccomp_knotif *knotif; in seccomp_notify_addfd() local
1717 knotif = find_notification(filter, addfd.id); in seccomp_notify_addfd()
1718 if (!knotif) { in seccomp_notify_addfd()
1728 if (knotif->state != SECCOMP_NOTIFY_SENT) { in seccomp_notify_addfd()
1741 if (!list_empty(&knotif->addfd)) { in seccomp_notify_addfd()
1747 knotif->state = SECCOMP_NOTIFY_REPLIED; in seccomp_notify_addfd()
1750 list_add(&kaddfd.list, &knotif->addfd); in seccomp_notify_addfd()
1751 complete(&knotif->ready); in seccomp_notify_addfd()