Lines Matching refs:notifier
430 struct vmci_handle_list *notifier, *tmp; in ctx_free_ctx() local
472 list_for_each_entry_safe(notifier, tmp, in ctx_free_ctx()
474 list_del(¬ifier->node); in ctx_free_ctx()
475 kfree(notifier); in ctx_free_ctx()
602 struct vmci_handle_list *notifier, *n; in vmci_ctx_add_notification() local
622 notifier = kmalloc(sizeof(struct vmci_handle_list), GFP_KERNEL); in vmci_ctx_add_notification()
623 if (!notifier) { in vmci_ctx_add_notification()
628 INIT_LIST_HEAD(¬ifier->node); in vmci_ctx_add_notification()
629 notifier->handle = vmci_make_handle(remote_cid, VMCI_EVENT_HANDLER); in vmci_ctx_add_notification()
634 if (vmci_handle_is_equal(n->handle, notifier->handle)) { in vmci_ctx_add_notification()
641 kfree(notifier); in vmci_ctx_add_notification()
644 list_add_tail_rcu(¬ifier->node, &context->notifier_list); in vmci_ctx_add_notification()
663 struct vmci_handle_list *notifier, *tmp; in vmci_ctx_remove_notification() local
674 list_for_each_entry_safe(notifier, tmp, in vmci_ctx_remove_notification()
676 if (vmci_handle_is_equal(notifier->handle, handle)) { in vmci_ctx_remove_notification()
677 list_del_rcu(¬ifier->node); in vmci_ctx_remove_notification()
687 kfree(notifier); in vmci_ctx_remove_notification()