Home
last modified time | relevance | path

Searched refs:notifier (Results 1 – 126 of 126) sorted by relevance

/linux-4.4.14/drivers/media/v4l2-core/
Dv4l2-async.c61 static struct v4l2_async_subdev *v4l2_async_belongs(struct v4l2_async_notifier *notifier, in v4l2_async_belongs() argument
67 list_for_each_entry(asd, &notifier->waiting, list) { in v4l2_async_belongs()
96 static int v4l2_async_test_notify(struct v4l2_async_notifier *notifier, in v4l2_async_test_notify() argument
105 sd->notifier = notifier; in v4l2_async_test_notify()
107 if (notifier->bound) { in v4l2_async_test_notify()
108 ret = notifier->bound(notifier, sd, asd); in v4l2_async_test_notify()
113 list_move(&sd->async_list, &notifier->done); in v4l2_async_test_notify()
115 ret = v4l2_device_register_subdev(notifier->v4l2_dev, sd); in v4l2_async_test_notify()
117 if (notifier->unbind) in v4l2_async_test_notify()
118 notifier->unbind(notifier, sd, asd); in v4l2_async_test_notify()
[all …]
/linux-4.4.14/Documentation/fault-injection/
Dnotifier-error-inject.txt5 specified notifier chain callbacks. It is useful to test the error handling of
6 notifier call chain failures which is rarely executed. There are kernel
9 * CPU notifier
10 * PM notifier
11 * Memory hotplug notifier
12 * powerpc pSeries reconfig notifier
14 CPU notifier error injection module
17 injecting artificial errors to CPU notifier chain callbacks.
19 If the notifier call chain should be failed with some events notified, write
21 /sys/kernel/debug/notifier-error-inject/cpu/actions/<notifier event>/error
[all …]
/linux-4.4.14/block/
Dblk-mq-cpu.c40 void blk_mq_register_cpu_notifier(struct blk_mq_cpu_notifier *notifier) in blk_mq_register_cpu_notifier() argument
42 BUG_ON(!notifier->notify); in blk_mq_register_cpu_notifier()
45 list_add_tail(&notifier->list, &blk_mq_cpu_notify_list); in blk_mq_register_cpu_notifier()
49 void blk_mq_unregister_cpu_notifier(struct blk_mq_cpu_notifier *notifier) in blk_mq_unregister_cpu_notifier() argument
52 list_del(&notifier->list); in blk_mq_unregister_cpu_notifier()
56 void blk_mq_init_cpu_notifier(struct blk_mq_cpu_notifier *notifier, in blk_mq_init_cpu_notifier() argument
60 notifier->notify = fn; in blk_mq_init_cpu_notifier()
61 notifier->data = data; in blk_mq_init_cpu_notifier()
Dblk-mq.h38 void blk_mq_init_cpu_notifier(struct blk_mq_cpu_notifier *notifier,
41 void blk_mq_register_cpu_notifier(struct blk_mq_cpu_notifier *notifier);
42 void blk_mq_unregister_cpu_notifier(struct blk_mq_cpu_notifier *notifier);
/linux-4.4.14/include/media/
Dv4l2-async.h85 int (*bound)(struct v4l2_async_notifier *notifier,
88 int (*complete)(struct v4l2_async_notifier *notifier);
89 void (*unbind)(struct v4l2_async_notifier *notifier,
95 struct v4l2_async_notifier *notifier);
96 void v4l2_async_notifier_unregister(struct v4l2_async_notifier *notifier);
Dv4l2-subdev.h734 struct v4l2_async_notifier *notifier; member
/linux-4.4.14/include/linux/
Dpreempt.h270 void (*sched_in)(struct preempt_notifier *notifier, int cpu);
271 void (*sched_out)(struct preempt_notifier *notifier,
289 void preempt_notifier_register(struct preempt_notifier *notifier);
290 void preempt_notifier_unregister(struct preempt_notifier *notifier);
292 static inline void preempt_notifier_init(struct preempt_notifier *notifier, in preempt_notifier_init() argument
295 INIT_HLIST_NODE(&notifier->link); in preempt_notifier_init()
296 notifier->ops = ops; in preempt_notifier_init()
Dpm_qos.h132 int pm_qos_add_notifier(int pm_qos_class, struct notifier_block *notifier);
133 int pm_qos_remove_notifier(int pm_qos_class, struct notifier_block *notifier);
147 struct notifier_block *notifier);
149 struct notifier_block *notifier);
150 int dev_pm_qos_add_global_notifier(struct notifier_block *notifier);
151 int dev_pm_qos_remove_global_notifier(struct notifier_block *notifier);
198 struct notifier_block *notifier) in dev_pm_qos_add_notifier() argument
201 struct notifier_block *notifier) in dev_pm_qos_remove_notifier() argument
204 struct notifier_block *notifier) in dev_pm_qos_add_global_notifier() argument
207 struct notifier_block *notifier) in dev_pm_qos_remove_global_notifier() argument
Dbcm47xx_wdt.h18 struct notifier_block notifier; member
Dkvm_irqfd.h37 struct kvm_irq_ack_notifier notifier; member
Dintel-iommu.h492 struct mmu_notifier notifier; member
/linux-4.4.14/drivers/edac/
Docteon_edac-pc.c30 struct notifier_block notifier; member
43 notifier); in co_cache_error_event()
92 p->notifier.notifier_call = co_cache_error_event; in co_cache_error_probe()
113 register_co_cache_error_notifier(&p->notifier); in co_cache_error_probe()
127 unregister_co_cache_error_notifier(&p->notifier); in co_cache_error_remove()
/linux-4.4.14/drivers/usb/phy/
Dphy-ab8500-usb.c439 atomic_notifier_call_chain(&ab->phy.notifier, in ab9540_usb_link_status_update()
461 atomic_notifier_call_chain(&ab->phy.notifier, in ab9540_usb_link_status_update()
468 atomic_notifier_call_chain(&ab->phy.notifier, in ab9540_usb_link_status_update()
484 atomic_notifier_call_chain(&ab->phy.notifier, in ab9540_usb_link_status_update()
490 atomic_notifier_call_chain(&ab->phy.notifier, in ab9540_usb_link_status_update()
497 atomic_notifier_call_chain(&ab->phy.notifier, in ab9540_usb_link_status_update()
504 atomic_notifier_call_chain(&ab->phy.notifier, in ab9540_usb_link_status_update()
516 atomic_notifier_call_chain(&ab->phy.notifier, in ab9540_usb_link_status_update()
522 atomic_notifier_call_chain(&ab->phy.notifier, in ab9540_usb_link_status_update()
525 atomic_notifier_call_chain(&ab->phy.notifier, in ab9540_usb_link_status_update()
[all …]
Dphy-generic.c126 atomic_notifier_call_chain(&nop->phy.notifier, status, in nop_gpio_vbus_thread()
136 atomic_notifier_call_chain(&nop->phy.notifier, status, in nop_gpio_vbus_thread()
Dphy-gpio-vbus-usb.c135 atomic_notifier_call_chain(&gpio_vbus->phy.notifier, in gpio_vbus_work()
150 atomic_notifier_call_chain(&gpio_vbus->phy.notifier, in gpio_vbus_work()
Dphy.c391 ATOMIC_INIT_NOTIFIER_HEAD(&x->notifier); in usb_add_phy()
431 ATOMIC_INIT_NOTIFIER_HEAD(&x->notifier); in usb_add_phy_dev()
/linux-4.4.14/drivers/leds/trigger/
Dledtrig-backlight.c28 struct notifier_block notifier; member
36 struct bl_trig_notifier, notifier); in fb_notifier_callback()
120 n->notifier.notifier_call = fb_notifier_callback; in bl_trig_activate()
122 ret = fb_register_client(&n->notifier); in bl_trig_activate()
141 fb_unregister_client(&n->notifier); in bl_trig_deactivate()
/linux-4.4.14/net/netfilter/
Dxt_TEE.c23 struct notifier_block notifier; member
60 priv = container_of(this, struct xt_tee_priv, notifier); in tee_netdev_event()
101 priv->notifier.notifier_call = tee_netdev_event; in tee_tg_check()
104 register_netdevice_notifier(&priv->notifier); in tee_tg_check()
117 unregister_netdevice_notifier(&info->priv->notifier); in tee_tg_destroy()
DKconfig112 provide a notifier chain that can be used by other kernel code
/linux-4.4.14/drivers/media/platform/xilinx/
Dxilinx-vipp.c289 static int xvip_graph_notify_complete(struct v4l2_async_notifier *notifier) in xvip_graph_notify_complete() argument
292 container_of(notifier, struct xvip_composite_device, notifier); in xvip_graph_notify_complete()
317 static int xvip_graph_notify_bound(struct v4l2_async_notifier *notifier, in xvip_graph_notify_bound() argument
322 container_of(notifier, struct xvip_composite_device, notifier); in xvip_graph_notify_bound()
493 v4l2_async_notifier_unregister(&xdev->notifier); in xvip_graph_cleanup()
546 xdev->notifier.subdevs = subdevs; in xvip_graph_init()
547 xdev->notifier.num_subdevs = num_subdevs; in xvip_graph_init()
548 xdev->notifier.bound = xvip_graph_notify_bound; in xvip_graph_init()
549 xdev->notifier.complete = xvip_graph_notify_complete; in xvip_graph_init()
551 ret = v4l2_async_notifier_register(&xdev->v4l2_dev, &xdev->notifier); in xvip_graph_init()
Dxilinx-vipp.h41 struct v4l2_async_notifier notifier; member
/linux-4.4.14/tools/testing/selftests/memory-hotplug/
Dmem-on-off-test.sh181 NOTIFIER_ERR_INJECT_DIR=$DEBUGFS/notifier-error-inject/memory
187 /sbin/modprobe -q -r memory-notifier-error-inject
188 /sbin/modprobe -q memory-notifier-error-inject priority=$priority
196 echo $msg memory-notifier-error-inject module is not available >&2
238 /sbin/modprobe -q -r memory-notifier-error-inject
/linux-4.4.14/tools/testing/selftests/cpu-hotplug/
Dcpu-on-off-test.sh214 NOTIFIER_ERR_INJECT_DIR=$DEBUGFS/notifier-error-inject/cpu
220 /sbin/modprobe -q -r cpu-notifier-error-inject
221 /sbin/modprobe -q cpu-notifier-error-inject priority=$priority
229 echo $msg cpu-notifier-error-inject module is not available >&2
269 /sbin/modprobe -q -r cpu-notifier-error-inject
/linux-4.4.14/drivers/misc/vmw_vmci/
Dvmci_context.c430 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(&notifier->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(&notifier->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()
[all …]
/linux-4.4.14/drivers/input/keyboard/
Dadp5520-keys.c19 struct notifier_block notifier; member
43 dev = container_of(nb, struct adp5520_keys, notifier); in adp5520_keys_notifier()
162 dev->notifier.notifier_call = adp5520_keys_notifier; in adp5520_keys_probe()
163 ret = adp5520_register_notifier(dev->master, &dev->notifier, in adp5520_keys_probe()
178 adp5520_unregister_notifier(dev->master, &dev->notifier, in adp5520_keys_remove()
/linux-4.4.14/drivers/staging/nvec/
Dnvec_power.c28 struct notifier_block notifier; member
92 container_of(nb, struct nvec_power, notifier); in nvec_power_notifier()
128 container_of(nb, struct nvec_power, notifier); in nvec_power_bat_notifier()
394 power->notifier.notifier_call = nvec_power_notifier; in nvec_power_probe()
403 power->notifier.notifier_call = nvec_power_bat_notifier; in nvec_power_probe()
409 nvec_register_notifier(nvec, &power->notifier, NVEC_SYS); in nvec_power_probe()
424 nvec_unregister_notifier(power->nvec, &power->notifier); in nvec_power_remove()
Dnvec_ps2.c47 struct notifier_block notifier; member
124 ps2_dev.notifier.notifier_call = nvec_ps2_notifier; in nvec_mouse_probe()
126 nvec_register_notifier(nvec, &ps2_dev.notifier, 0); in nvec_mouse_probe()
142 nvec_unregister_notifier(nvec, &ps2_dev.notifier); in nvec_mouse_remove()
Dnvec_kbd.c37 struct notifier_block notifier; member
148 keys_dev.notifier.notifier_call = nvec_keys_notifier; in nvec_kbd_probe()
150 nvec_register_notifier(nvec, &keys_dev.notifier, 0); in nvec_kbd_probe()
174 nvec_unregister_notifier(nvec, &keys_dev.notifier); in nvec_kbd_remove()
/linux-4.4.14/drivers/watchdog/
Dbcm47xx_wdt.c166 wdt = container_of(this, struct bcm47xx_wdt, notifier); in bcm47xx_wdt_notify_sys()
218 wdt->notifier.notifier_call = &bcm47xx_wdt_notify_sys; in bcm47xx_wdt_probe()
220 ret = register_reboot_notifier(&wdt->notifier); in bcm47xx_wdt_probe()
242 unregister_reboot_notifier(&wdt->notifier); in bcm47xx_wdt_probe()
258 unregister_reboot_notifier(&wdt->notifier); in bcm47xx_wdt_remove()
Dgpio_wdt.c39 struct notifier_block notifier; member
133 notifier); in gpio_wdt_notify_sys()
231 priv->notifier.notifier_call = gpio_wdt_notify_sys; in gpio_wdt_probe()
232 ret = register_reboot_notifier(&priv->notifier); in gpio_wdt_probe()
251 unregister_reboot_notifier(&priv->notifier); in gpio_wdt_remove()
/linux-4.4.14/arch/mips/kernel/
Dvpe-mt.c29 struct vpe_notifications *notifier; in vpe_run() local
141 list_for_each_entry(notifier, &v->notify, list) in vpe_run()
142 notifier->start(VPE_MODULE_MINOR); in vpe_run()
265 struct vpe_notifications *notifier; in store_kill() local
267 list_for_each_entry(notifier, &vpe->notify, list) in store_kill()
268 notifier->stop(aprp_cpu_index()); in store_kill()
Dvpe-cmp.c28 struct vpe_notifications *notifier; in store_kill() local
30 list_for_each_entry(notifier, &vpe->notify, list) in store_kill()
31 notifier->stop(aprp_cpu_index()); in store_kill()
Dvpe.c768 struct vpe_notifications *notifier; in vpe_open() local
790 list_for_each_entry(notifier, &v->notify, list) in vpe_open()
791 notifier->stop(aprp_cpu_index()); in vpe_open()
/linux-4.4.14/net/rds/
Drecv.c298 struct rds_notifier *notifier; in rds_notify_queue_get() local
321 notifier = list_entry(rs->rs_notify_queue.next, in rds_notify_queue_get()
323 list_move(&notifier->n_list, &copy); in rds_notify_queue_get()
332 notifier = list_entry(copy.next, struct rds_notifier, n_list); in rds_notify_queue_get()
335 cmsg.user_token = notifier->n_user_token; in rds_notify_queue_get()
336 cmsg.status = notifier->n_status; in rds_notify_queue_get()
344 list_del_init(&notifier->n_list); in rds_notify_queue_get()
345 kfree(notifier); in rds_notify_queue_get()
Dsend.c468 struct rds_notifier *notifier; in rds_rdma_send_complete() local
476 notifier = ro->op_notifier; in rds_rdma_send_complete()
480 notifier->n_status = status; in rds_rdma_send_complete()
482 list_add_tail(&notifier->n_list, &rs->rs_notify_queue); in rds_rdma_send_complete()
504 struct rds_notifier *notifier; in rds_atomic_send_complete() local
512 notifier = ao->op_notifier; in rds_atomic_send_complete()
516 notifier->n_status = status; in rds_atomic_send_complete()
518 list_add_tail(&notifier->n_list, &rs->rs_notify_queue); in rds_atomic_send_complete()
647 struct rds_notifier *notifier; in rds_send_remove_from_sock() local
654 notifier = ro->op_notifier; in rds_send_remove_from_sock()
[all …]
/linux-4.4.14/drivers/input/touchscreen/
Dda9034-ts.c57 struct notifier_block notifier; member
238 container_of(nb, struct da9034_touch, notifier); in da9034_touch_notifier()
254 ret = da903x_register_notifier(touch->da9034_dev, &touch->notifier, in da9034_touch_open()
284 da903x_unregister_notifier(touch->da9034_dev, &touch->notifier, in da9034_touch_close()
325 touch->notifier.notifier_call = da9034_touch_notifier; in da9034_touch_probe()
/linux-4.4.14/Documentation/DocBook/
Dregulator.xml.db42 API-regulator-register-notifier
43 API-regulator-unregister-notifier
49 API-regulator-notifier-call-chain
Dgenericirq.xml.db23 API-irq-set-affinity-notifier
Dkernel-api.xml.db365 API-irq-set-affinity-notifier
738 API-struct-clk-notifier
739 API-struct-clk-notifier-data
740 API-clk-notifier-register
741 API-clk-notifier-unregister
Dalsa-driver-api.xml.db343 API-snd-soc-jack-notifier-register
344 API-snd-soc-jack-notifier-unregister
Dnetworking.xml.db303 API-register-netdevice-notifier
304 API-unregister-netdevice-notifier
Ddevice-drivers.xml.db25 API-preempt-notifier-register
26 API-preempt-notifier-unregister
794 API-struct-v4l2-async-notifier
/linux-4.4.14/drivers/base/power/
Dqos.c491 int dev_pm_qos_add_notifier(struct device *dev, struct notifier_block *notifier) in dev_pm_qos_add_notifier() argument
504 notifier); in dev_pm_qos_add_notifier()
522 struct notifier_block *notifier) in dev_pm_qos_remove_notifier() argument
531 notifier); in dev_pm_qos_remove_notifier()
547 int dev_pm_qos_add_global_notifier(struct notifier_block *notifier) in dev_pm_qos_add_global_notifier() argument
549 return blocking_notifier_chain_register(&dev_pm_notifiers, notifier); in dev_pm_qos_add_global_notifier()
562 int dev_pm_qos_remove_global_notifier(struct notifier_block *notifier) in dev_pm_qos_remove_global_notifier() argument
564 return blocking_notifier_chain_unregister(&dev_pm_notifiers, notifier); in dev_pm_qos_remove_global_notifier()
/linux-4.4.14/drivers/media/platform/soc_camera/
Dsoc_camera.c64 struct v4l2_async_notifier notifier; member
1455 static int soc_camera_async_bound(struct v4l2_async_notifier *notifier, in soc_camera_async_bound() argument
1459 struct soc_camera_async_client *sasc = container_of(notifier, in soc_camera_async_bound()
1460 struct soc_camera_async_client, notifier); in soc_camera_async_bound()
1488 static void soc_camera_async_unbind(struct v4l2_async_notifier *notifier, in soc_camera_async_unbind() argument
1492 struct soc_camera_async_client *sasc = container_of(notifier, in soc_camera_async_unbind()
1493 struct soc_camera_async_client, notifier); in soc_camera_async_unbind()
1502 static int soc_camera_async_complete(struct v4l2_async_notifier *notifier) in soc_camera_async_complete() argument
1504 struct soc_camera_async_client *sasc = container_of(notifier, in soc_camera_async_complete()
1505 struct soc_camera_async_client, notifier); in soc_camera_async_complete()
[all …]
Dsh_mobile_ceu_camera.c1724 struct notifier_block notifier; member
1733 struct bus_wait *wait = container_of(nb, struct bus_wait, notifier); in bus_notify()
1756 .notifier.notifier_call = bus_notify, in sh_mobile_ceu_probe()
1921 err = bus_register_notifier(&platform_bus_type, &wait.notifier); in sh_mobile_ceu_probe()
1933 bus_unregister_notifier(&platform_bus_type, &wait.notifier); in sh_mobile_ceu_probe()
1948 bus_unregister_notifier(&platform_bus_type, &wait.notifier); in sh_mobile_ceu_probe()
/linux-4.4.14/lib/
DMakefile120 obj-$(CONFIG_NOTIFIER_ERROR_INJECTION) += notifier-error-inject.o
121 obj-$(CONFIG_CPU_NOTIFIER_ERROR_INJECT) += cpu-notifier-error-inject.o
122 obj-$(CONFIG_PM_NOTIFIER_ERROR_INJECT) += pm-notifier-error-inject.o
123 obj-$(CONFIG_MEMORY_NOTIFIER_ERROR_INJECT) += memory-notifier-error-inject.o
125 of-reconfig-notifier-error-inject.o
DKconfig.debug612 tristate "Memory hotplug notifier error injection module"
616 memory hotplug notifier chain callbacks. It is controlled through
617 debugfs interface under /sys/kernel/debug/notifier-error-inject/memory
619 If the notifier call chain should be failed with some events
620 notified, write the error code to "actions/<notifier event>/error".
624 # cd /sys/kernel/debug/notifier-error-inject/memory
630 be called memory-notifier-error-inject.
1178 bool "Debug notifier call chains"
1181 Enable this to turn on sanity checking for notifier call chains.
1183 modules properly unregister themselves from notifier chains.
[all …]
/linux-4.4.14/drivers/iommu/
Dintel-svm.c214 struct intel_svm *svm = container_of(mn, struct intel_svm, notifier); in intel_change_pte()
222 struct intel_svm *svm = container_of(mn, struct intel_svm, notifier); in intel_invalidate_page()
232 struct intel_svm *svm = container_of(mn, struct intel_svm, notifier); in intel_invalidate_range()
251 struct intel_svm *svm = container_of(mn, struct intel_svm, notifier); in intel_mm_release()
386 svm->notifier.ops = &intel_mmuops; in intel_svm_bind_mm()
392 ret = mmu_notifier_register(&svm->notifier, mm); in intel_svm_bind_mm()
465 mmu_notifier_unregister(&svm->notifier, svm->mm); in intel_svm_unbind_mm()
Diommu.c49 struct blocking_notifier_head notifier; member
187 BLOCKING_INIT_NOTIFIER_HEAD(&group->notifier); in iommu_group_alloc()
439 blocking_notifier_call_chain(&group->notifier, in iommu_group_add_device()
465 blocking_notifier_call_chain(&group->notifier, in iommu_group_remove_device()
588 return blocking_notifier_chain_register(&group->notifier, nb); in iommu_group_register_notifier()
602 return blocking_notifier_chain_unregister(&group->notifier, nb); in iommu_group_unregister_notifier()
950 blocking_notifier_call_chain(&group->notifier, in iommu_bus_notifier()
/linux-4.4.14/Documentation/cpu-freq/
Dcore.txt47 CPUFreq notifiers conform to the standard kernel notifier interface.
48 See linux/include/linux/notifier.h for details on notifiers.
58 CPUFreq policy notifier is called twice for a policy transition:
69 The phase is specified in the second argument to the notifier.
/linux-4.4.14/sound/soc/
Dsoc-jack.c49 BLOCKING_INIT_NOTIFIER_HEAD(&jack->notifier); in snd_soc_card_jack_new()
113 blocking_notifier_call_chain(&jack->notifier, jack->status, jack); in snd_soc_jack_report()
228 blocking_notifier_chain_register(&jack->notifier, nb); in snd_soc_jack_notifier_register()
243 blocking_notifier_chain_unregister(&jack->notifier, nb); in snd_soc_jack_notifier_unregister()
/linux-4.4.14/include/linux/mfd/
Ddbx500-prcmu.h617 struct notifier_block *notifier);
619 struct notifier_block *notifier);
654 struct notifier_block *notifier) in prcmu_qos_add_notifier() argument
659 struct notifier_block *notifier) in prcmu_qos_remove_notifier() argument
/linux-4.4.14/virt/kvm/
Deventfd.c78 struct kvm_kernel_irqfd_resampler, notifier); in irqfd_resampler_ack()
82 resampler->notifier.gsi, 0, false); in irqfd_resampler_ack()
105 kvm_unregister_irq_ack_notifier(kvm, &resampler->notifier); in irqfd_resampler_shutdown()
107 resampler->notifier.gsi, 0, false); in irqfd_resampler_shutdown()
337 if (resampler->notifier.gsi == irqfd->gsi) { in kvm_irqfd_assign()
353 resampler->notifier.gsi = irqfd->gsi; in kvm_irqfd_assign()
354 resampler->notifier.irq_acked = irqfd_resampler_ack; in kvm_irqfd_assign()
359 &resampler->notifier); in kvm_irqfd_assign()
Dkvm_main.c3122 static int kvm_cpu_hotplug(struct notifier_block *notifier, unsigned long val, in kvm_cpu_hotplug() argument
3137 static int kvm_reboot(struct notifier_block *notifier, unsigned long val, in kvm_reboot() argument
/linux-4.4.14/include/linux/usb/
Dphy.h89 struct atomic_notifier_head notifier; member
317 return atomic_notifier_chain_register(&x->notifier, nb); in usb_register_notifier()
323 atomic_notifier_chain_unregister(&x->notifier, nb); in usb_unregister_notifier()
/linux-4.4.14/Documentation/power/
Dnotifiers.txt13 A suspend/hibernation notifier may be used for this purpose.
52 NULL). To register and/or unregister a suspend notifier use the functions
54 include/linux/suspend.h . If you don't need to unregister the notifier, you can
Dpm_qos_interface.txt63 int pm_qos_add_notifier(param_class, notifier):
67 int pm_qos_remove_notifier(int param_class, notifier):
169 int dev_pm_qos_add_notifier(device, notifier):
174 int dev_pm_qos_remove_notifier(device, notifier):
177 int dev_pm_qos_add_global_notifier(notifier):
183 int dev_pm_qos_remove_global_notifier(notifier):
Dfreezing-of-tasks.txt200 requested early enough using the suspend notifier API described in notifiers.txt.
Druntime_pm.txt568 notifier callback in __device_release_driver(), which is necessary, because the
569 notifier is used by some subsystems to carry out operations affecting the
Dpci.txt715 preallocated earlier, for example in a suspend/hibernate notifier as described
/linux-4.4.14/drivers/media/platform/omap3isp/
Disp.c2143 v4l2_async_notifier_unregister(&isp->notifier); in isp_remove()
2237 struct v4l2_async_notifier *notifier) in isp_of_parse_nodes() argument
2241 notifier->subdevs = devm_kcalloc( in isp_of_parse_nodes()
2242 dev, ISP_MAX_SUBDEVS, sizeof(*notifier->subdevs), GFP_KERNEL); in isp_of_parse_nodes()
2243 if (!notifier->subdevs) in isp_of_parse_nodes()
2246 while (notifier->num_subdevs < ISP_MAX_SUBDEVS && in isp_of_parse_nodes()
2256 notifier->subdevs[notifier->num_subdevs] = &isd->asd; in isp_of_parse_nodes()
2271 notifier->num_subdevs++; in isp_of_parse_nodes()
2274 return notifier->num_subdevs; in isp_of_parse_nodes()
2282 notifier); in isp_subdev_notifier_bound()
[all …]
Disp.h177 struct v4l2_async_notifier notifier; member
/linux-4.4.14/drivers/tty/vt/
Dvc_screen.c54 struct notifier_block notifier; member
67 container_of(nb, struct vcs_poll_data, notifier); in vcs_notifier()
89 unregister_vt_notifier(&poll->notifier); in vcs_poll_data_free()
106 poll->notifier.notifier_call = vcs_notifier; in vcs_poll_data_get()
107 if (register_vt_notifier(&poll->notifier) != 0) { in vcs_poll_data_get()
/linux-4.4.14/Documentation/input/
Dnotifier.txt1 Keyboard notifier
52 NOTE: This notifier is usually called from interrupt context.
/linux-4.4.14/kernel/power/
Dqos.c556 int pm_qos_add_notifier(int pm_qos_class, struct notifier_block *notifier) in pm_qos_add_notifier() argument
562 notifier); in pm_qos_add_notifier()
576 int pm_qos_remove_notifier(int pm_qos_class, struct notifier_block *notifier) in pm_qos_remove_notifier() argument
582 notifier); in pm_qos_remove_notifier()
/linux-4.4.14/Documentation/
Dpadata.txt74 the padata cpumask change notifier:
79 To unregister from that notifier:
84 The padata cpumask change notifier notifies about changes of the usable
87 Padata calls the notifier chain with:
93 Here cpumask_change_notifier is registered notifier, notification_mask
Dmemory-hotplug.txt6 Add description of notifier of memory hotplug Oct 11 2007
28 8. Memory hotplug event notifier
360 8. Memory hotplug event notifier
404 of the notifier chain that points to the callback function itself.
430 defined in include/linux/notifier.h
Dcpu-hotplug.txt262 notifier is called, when CPU_DEAD is called its expected there is nothing
310 things will happen if a notifier in path sent a BAD notify code.
/linux-4.4.14/mm/
Dzswap.c121 struct notifier_block notifier; member
455 struct zswap_pool *pool = container_of(nb, typeof(*pool), notifier); in zswap_cpu_comp_notifier()
464 memset(&pool->notifier, 0, sizeof(pool->notifier)); in zswap_cpu_comp_init()
465 pool->notifier.notifier_call = zswap_cpu_comp_notifier; in zswap_cpu_comp_init()
472 __register_cpu_notifier(&pool->notifier); in zswap_cpu_comp_init()
490 __unregister_cpu_notifier(&pool->notifier); in zswap_cpu_comp_destroy()
/linux-4.4.14/net/can/
Draw.c87 struct notifier_block notifier; member
267 struct raw_sock *ro = container_of(nb, struct raw_sock, notifier); in raw_notifier()
335 ro->notifier.notifier_call = raw_notifier; in raw_init()
337 register_netdevice_notifier(&ro->notifier); in raw_init()
352 unregister_netdevice_notifier(&ro->notifier); in raw_release()
Dgw.c83 static struct notifier_block notifier; variable
1010 notifier.notifier_call = cgw_notifier; in cgw_module_init()
1011 register_netdevice_notifier(&notifier); in cgw_module_init()
1014 unregister_netdevice_notifier(&notifier); in cgw_module_init()
1030 unregister_netdevice_notifier(&notifier); in cgw_module_exit()
Dbcm.c121 struct notifier_block notifier; member
1356 struct bcm_sock *bo = container_of(nb, struct bcm_sock, notifier); in bcm_notifier()
1420 bo->notifier.notifier_call = bcm_notifier; in bcm_init()
1422 register_netdevice_notifier(&bo->notifier); in bcm_init()
1443 unregister_netdevice_notifier(&bo->notifier); in bcm_release()
/linux-4.4.14/drivers/media/platform/davinci/
Dvpif_capture.h118 struct v4l2_async_notifier notifier; member
Dvpif_display.h123 struct v4l2_async_notifier notifier; member
Dvpif_display.c1121 static int vpif_async_bound(struct v4l2_async_notifier *notifier, in vpif_async_bound() argument
1241 static int vpif_async_complete(struct v4l2_async_notifier *notifier) in vpif_async_complete() argument
1317 vpif_obj.notifier.subdevs = vpif_obj.config->asd; in vpif_probe()
1318 vpif_obj.notifier.num_subdevs = vpif_obj.config->asd_sizes[0]; in vpif_probe()
1319 vpif_obj.notifier.bound = vpif_async_bound; in vpif_probe()
1320 vpif_obj.notifier.complete = vpif_async_complete; in vpif_probe()
1322 &vpif_obj.notifier); in vpif_probe()
Dvpif_capture.c1323 static int vpif_async_bound(struct v4l2_async_notifier *notifier, in vpif_async_bound() argument
1426 static int vpif_async_complete(struct v4l2_async_notifier *notifier) in vpif_async_complete() argument
1506 vpif_obj.notifier.subdevs = vpif_obj.config->asd; in vpif_probe()
1507 vpif_obj.notifier.num_subdevs = vpif_obj.config->asd_sizes[0]; in vpif_probe()
1508 vpif_obj.notifier.bound = vpif_async_bound; in vpif_probe()
1509 vpif_obj.notifier.complete = vpif_async_complete; in vpif_probe()
1511 &vpif_obj.notifier); in vpif_probe()
/linux-4.4.14/kernel/
DMakefile11 notifier.o ksysfs.o cred.o reboot.o \
97 obj-$(CONFIG_USER_RETURN_NOTIFIER) += user-return-notifier.o
/linux-4.4.14/drivers/xen/
Dcpu_hotplug.c84 static int setup_cpu_watcher(struct notifier_block *notifier, in setup_cpu_watcher() argument
Dxen-balloon.c78 static int balloon_init_watcher(struct notifier_block *notifier, in balloon_init_watcher() argument
Dmanage.c332 static int shutdown_event(struct notifier_block *notifier, in shutdown_event() argument
/linux-4.4.14/drivers/mfd/
Dtwl6030-irq.c132 static int twl6030_irq_pm_notifier(struct notifier_block *notifier, in twl6030_irq_pm_notifier() argument
136 struct twl6030_irq *pdata = container_of(notifier, struct twl6030_irq, in twl6030_irq_pm_notifier()
/linux-4.4.14/drivers/devfreq/
DKconfig12 notification to "nb", a notifier block, of devfreq.
25 register devfreq's nb to the OPP's notifier head. If OPP is
/linux-4.4.14/drivers/s390/char/
Draw3270.c1136 int raw3270_register_notifier(struct raw3270_notifier *notifier) in raw3270_register_notifier() argument
1141 list_add_tail(&notifier->list, &raw3270_notifier); in raw3270_register_notifier()
1143 notifier->create(rp->minor); in raw3270_register_notifier()
1148 void raw3270_unregister_notifier(struct raw3270_notifier *notifier) in raw3270_unregister_notifier() argument
1154 notifier->destroy(rp->minor); in raw3270_unregister_notifier()
1155 list_del(&notifier->list); in raw3270_unregister_notifier()
/linux-4.4.14/drivers/media/platform/am437x/
Dam437x-vpfe.h236 struct v4l2_async_notifier notifier; member
Dam437x-vpfe.c2292 vpfe_async_bound(struct v4l2_async_notifier *notifier, in vpfe_async_bound() argument
2296 struct vpfe_device *vpfe = container_of(notifier->v4l2_dev, in vpfe_async_bound()
2417 static int vpfe_async_complete(struct v4l2_async_notifier *notifier) in vpfe_async_complete() argument
2419 struct vpfe_device *vpfe = container_of(notifier->v4l2_dev, in vpfe_async_complete()
2595 vpfe->notifier.subdevs = vpfe->cfg->asd; in vpfe_probe()
2596 vpfe->notifier.num_subdevs = ARRAY_SIZE(vpfe->cfg->asd); in vpfe_probe()
2597 vpfe->notifier.bound = vpfe_async_bound; in vpfe_probe()
2598 vpfe->notifier.complete = vpfe_async_complete; in vpfe_probe()
2600 &vpfe->notifier); in vpfe_probe()
2625 v4l2_async_notifier_unregister(&vpfe->notifier); in vpfe_remove()
/linux-4.4.14/Documentation/devicetree/
Dchangesets.txt11 receives the notifier.
/linux-4.4.14/include/linux/regulator/
Ddriver.h381 struct blocking_notifier_head notifier; member
/linux-4.4.14/drivers/xen/xenbus/
Dxenbus_probe_backend.c247 static int backend_probe_and_watch(struct notifier_block *notifier, in backend_probe_and_watch() argument
Dxenbus_probe_frontend.c457 static int frontend_probe_and_watch(struct notifier_block *notifier, in frontend_probe_and_watch() argument
/linux-4.4.14/net/tipc/
Dbearer.c601 static struct notifier_block notifier = { variable
610 err = register_netdevice_notifier(&notifier); in tipc_bearer_setup()
619 unregister_netdevice_notifier(&notifier); in tipc_bearer_cleanup()
/linux-4.4.14/drivers/net/wimax/i2400m/
Ddriver.c464 int i2400m_pm_notifier(struct notifier_block *notifier, in i2400m_pm_notifier() argument
469 container_of(notifier, struct i2400m, pm_notifier); in i2400m_pm_notifier()
/linux-4.4.14/drivers/infiniband/hw/usnic/
Dusnic_ib_main.c231 static int usnic_ib_netdevice_event(struct notifier_block *notifier, in usnic_ib_netdevice_event() argument
295 static int usnic_ib_inetaddr_event(struct notifier_block *notifier, in usnic_ib_inetaddr_event() argument
/linux-4.4.14/drivers/media/platform/exynos4-is/
Dmedia-dev.c1270 static int subdev_notifier_bound(struct v4l2_async_notifier *notifier, in subdev_notifier_bound() argument
1274 struct fimc_md *fmd = notifier_to_fimc_md(notifier); in subdev_notifier_bound()
1303 static int subdev_notifier_complete(struct v4l2_async_notifier *notifier) in subdev_notifier_complete() argument
1305 struct fimc_md *fmd = notifier_to_fimc_md(notifier); in subdev_notifier_complete()
/linux-4.4.14/drivers/extcon/
Dextcon-axp288.c224 atomic_notifier_call_chain(&info->otg->notifier, in axp288_handle_chrg_det_event()
/linux-4.4.14/drivers/ata/
Dsata_nv.c918 u32 notifier, notifier_error; in nv_adma_interrupt() local
943 notifier = readl(mmio + NV_ADMA_NOTIFIER); in nv_adma_interrupt()
945 notifier_clears[i] = notifier | notifier_error; in nv_adma_interrupt()
949 if (!NV_ADMA_CHECK_INTR(gen_ctl, ap->port_no) && !notifier && in nv_adma_interrupt()
1679 u32 notifier = readl(mmio + NV_ADMA_NOTIFIER); in nv_adma_error_handler() local
1690 notifier, notifier_error, gen_ctl, status, in nv_adma_error_handler()
/linux-4.4.14/drivers/scsi/fcoe/
Dfcoe_transport.c42 static int libfcoe_device_notification(struct notifier_block *notifier,
717 static int libfcoe_device_notification(struct notifier_block *notifier, in libfcoe_device_notification() argument
Dfcoe.c111 static int fcoe_dcb_app_notification(struct notifier_block *notifier,
1932 static int fcoe_dcb_app_notification(struct notifier_block *notifier, in fcoe_dcb_app_notification() argument
1983 static int fcoe_device_notification(struct notifier_block *notifier, in fcoe_device_notification() argument
/linux-4.4.14/kernel/sched/
Dcore.c2428 void preempt_notifier_register(struct preempt_notifier *notifier) in preempt_notifier_register() argument
2433 hlist_add_head(&notifier->link, &current->preempt_notifiers); in preempt_notifier_register()
2443 void preempt_notifier_unregister(struct preempt_notifier *notifier) in preempt_notifier_unregister() argument
2445 hlist_del(&notifier->link); in preempt_notifier_unregister()
2451 struct preempt_notifier *notifier; in __fire_sched_in_preempt_notifiers() local
2453 hlist_for_each_entry(notifier, &curr->preempt_notifiers, link) in __fire_sched_in_preempt_notifiers()
2454 notifier->ops->sched_in(notifier, raw_smp_processor_id()); in __fire_sched_in_preempt_notifiers()
2467 struct preempt_notifier *notifier; in __fire_sched_out_preempt_notifiers() local
2469 hlist_for_each_entry(notifier, &curr->preempt_notifiers, link) in __fire_sched_out_preempt_notifiers()
2470 notifier->ops->sched_out(notifier, next); in __fire_sched_out_preempt_notifiers()
/linux-4.4.14/Documentation/extcon/
Dporting-android-switch-class81 notifier chains.
/linux-4.4.14/drivers/block/
Dps3vram.c107 static u32 __iomem *ps3vram_get_notifier(void __iomem *reports, int notifier) in ps3vram_get_notifier() argument
110 DMA_NOTIFIER_SIZE * notifier; in ps3vram_get_notifier()
/linux-4.4.14/Documentation/cgroups/
Dmemory.txt47 - usage threshold notifier
48 - memory pressure notifier
49 - oom-killer disable knob and oom-notifier
259 When oom event notifier is registered, event will be delivered.
741 Memory cgroup implements OOM notifier using the cgroup notification
745 To register a notifier, an application must:
Dcpusets.txt220 cpu_online_mask using a CPU hotplug notifier, and the mems file
/linux-4.4.14/drivers/video/fbdev/
Dsh_mobile_lcdcfb.c217 struct notifier_block notifier; member
2395 if (&ch->lcdc->notifier != nb) in sh_mobile_lcdc_notify()
2445 fb_unregister_client(&priv->notifier); in sh_mobile_lcdc_remove()
2839 priv->notifier.notifier_call = sh_mobile_lcdc_notify; in sh_mobile_lcdc_probe()
2840 fb_register_client(&priv->notifier); in sh_mobile_lcdc_probe()
/linux-4.4.14/Documentation/power/regulator/
Doverview.txt149 operations to the core. It also has a notifier call chain for propagating
Dconsumer.txt182 Regulators use the kernel notifier framework to send event to their interested
/linux-4.4.14/Documentation/serial/
Dtty.txt297 stop() - Ldisc notifier to the driver to stop output. As with
301 start() - Ldisc notifier to the driver to start output.
/linux-4.4.14/Documentation/virtual/kvm/
Dlocking.txt157 Comment: it is a spinlock since it is used in mmu notifier.
Dmmu.txt334 - mmu notifier called with updated hva
/linux-4.4.14/drivers/infiniband/hw/nes/
Dnes.c141 static int nes_inetaddr_event(struct notifier_block *notifier, in nes_inetaddr_event() argument
223 static int nes_net_event(struct notifier_block *notifier, in nes_net_event() argument
/linux-4.4.14/drivers/usb/musb/
Domap2430.c311 atomic_notifier_call_chain(&musb->xceiv->notifier, in omap_musb_set_mailbox()
/linux-4.4.14/arch/um/drivers/
Dmconsole_kern.c38 static int do_unlink_socket(struct notifier_block *notifier, in do_unlink_socket() argument
/linux-4.4.14/Documentation/networking/
Dregulatory.txt81 registering on its struct wiphy a reg_notifier() callback. This notifier
Dswitchdev.txt197 in turn, will notify the bridge driver using the switchdev notifier call:
372 The driver can monitor for updates to arp_tbl using the netevent notifier
Dcan.txt907 CAN device notifier chain there are functions to subscribe CAN
/linux-4.4.14/drivers/phy/
Dphy-twl4030-usb.c713 ATOMIC_INIT_NOTIFIER_HEAD(&twl->phy.notifier); in twl4030_usb_probe()
/linux-4.4.14/drivers/regulator/
Dcore.c3400 return blocking_notifier_chain_register(&regulator->rdev->notifier, in regulator_register_notifier()
3415 return blocking_notifier_chain_unregister(&regulator->rdev->notifier, in regulator_unregister_notifier()
3427 return blocking_notifier_call_chain(&rdev->notifier, event, data); in _notifier_call_chain()
3914 BLOCKING_INIT_NOTIFIER_HEAD(&rdev->notifier); in regulator_register()
/linux-4.4.14/Documentation/RCU/
Dchecklist.txt197 a CPU-hotplug notifier, or while holding a lock that is acquired
198 by a CPU-hotplug notifier. Failing to observe this restriction
/linux-4.4.14/drivers/net/wireless/orinoco/
Dmain.c1972 static int orinoco_pm_notifier(struct notifier_block *notifier, in orinoco_pm_notifier() argument
1976 struct orinoco_private *priv = container_of(notifier, in orinoco_pm_notifier()
/linux-4.4.14/drivers/infiniband/hw/qib/
Dqib.h452 struct qib_irq_notify *notifier; member
Dqib_iba7322.c3361 m->notifier = NULL; in reset_dca_notifier()
3374 m->notifier = n; in setup_dca_notifier()
3387 m->notifier = NULL; in setup_dca_notifier()
/linux-4.4.14/Documentation/powerpc/
Deeh-pci-error-recovery.txt153 Next, it uses the Linux kernel notifier chain/work queue mechanism to
/linux-4.4.14/Documentation/video4linux/
Dv4l2-framework.txt429 Bridge drivers in turn have to register a notifier object with an array of
432 notifier the driver has to call v4l2_async_notifier_unregister(). The former of
437 subdevices to them. If a match is detected the .bound() notifier callback is
/linux-4.4.14/include/sound/
Dsoc.h716 struct blocking_notifier_head notifier; member
/linux-4.4.14/net/ipx/
Daf_ipx.c315 static int ipxitf_device_event(struct notifier_block *notifier, in ipxitf_device_event() argument
/linux-4.4.14/arch/s390/kvm/
Dkvm-s390.c149 static int kvm_clock_sync(struct notifier_block *notifier, unsigned long val, in kvm_clock_sync() argument
/linux-4.4.14/kernel/events/
Dcore.c9351 perf_reboot(struct notifier_block *notifier, unsigned long val, void *v) in perf_reboot() argument