Lines Matching refs:notifier
429 struct vmci_handle_list *notifier, *tmp; in ctx_free_ctx() local
471 list_for_each_entry_safe(notifier, tmp, in ctx_free_ctx()
473 list_del(¬ifier->node); in ctx_free_ctx()
474 kfree(notifier); in ctx_free_ctx()
601 struct vmci_handle_list *notifier, *n; in vmci_ctx_add_notification() local
621 notifier = kmalloc(sizeof(struct vmci_handle_list), GFP_KERNEL); in vmci_ctx_add_notification()
622 if (!notifier) { in vmci_ctx_add_notification()
627 INIT_LIST_HEAD(¬ifier->node); in vmci_ctx_add_notification()
628 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, in vmci_ctx_add_notification()
650 kfree(notifier); in vmci_ctx_add_notification()
668 struct vmci_handle_list *notifier, *tmp; in vmci_ctx_remove_notification() local
679 list_for_each_entry_safe(notifier, tmp, in vmci_ctx_remove_notification()
681 if (vmci_handle_is_equal(notifier->handle, handle)) { in vmci_ctx_remove_notification()
682 list_del_rcu(¬ifier->node); in vmci_ctx_remove_notification()
692 kfree(notifier); in vmci_ctx_remove_notification()