Lines Matching refs:notifier
409 struct vmci_handle_list *notifier, *tmp; in ctx_free_ctx() local
451 list_for_each_entry_safe(notifier, tmp, in ctx_free_ctx()
453 list_del(¬ifier->node); in ctx_free_ctx()
454 kfree(notifier); in ctx_free_ctx()
581 struct vmci_handle_list *notifier, *n; in vmci_ctx_add_notification() local
601 notifier = kmalloc(sizeof(struct vmci_handle_list), GFP_KERNEL); in vmci_ctx_add_notification()
602 if (!notifier) { in vmci_ctx_add_notification()
607 INIT_LIST_HEAD(¬ifier->node); in vmci_ctx_add_notification()
608 notifier->handle = vmci_make_handle(remote_cid, VMCI_EVENT_HANDLER); in vmci_ctx_add_notification()
614 if (vmci_handle_is_equal(n->handle, notifier->handle)) { in vmci_ctx_add_notification()
621 kfree(notifier); in vmci_ctx_add_notification()
624 list_add_tail_rcu(¬ifier->node, in vmci_ctx_add_notification()
630 kfree(notifier); in vmci_ctx_add_notification()
648 struct vmci_handle_list *notifier = NULL, *iter, *tmp; in vmci_ctx_remove_notification() local
663 notifier = iter; in vmci_ctx_remove_notification()
669 if (notifier) in vmci_ctx_remove_notification()
670 kvfree_rcu_mightsleep(notifier); in vmci_ctx_remove_notification()
674 return notifier ? VMCI_SUCCESS : VMCI_ERROR_NOT_FOUND; in vmci_ctx_remove_notification()