]>
git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blob - drivers/video/fb_notify.c
2 * linux/drivers/video/fb_notify.c
4 * Copyright (C) 2006 Antonino Daplas <adaplas@pol.net>
6 * 2001 - Documented with DocBook
7 * - Brad Douglas <brad@neruo.com>
9 * This file is subject to the terms and conditions of the GNU General Public
10 * License. See the file COPYING in the main directory of this archive
14 #include <linux/notifier.h>
16 static BLOCKING_NOTIFIER_HEAD(fb_notifier_list
);
19 * fb_register_client - register a client notifier
20 * @nb: notifier block to callback on events
22 int fb_register_client(struct notifier_block
*nb
)
24 return blocking_notifier_chain_register(&fb_notifier_list
, nb
);
26 EXPORT_SYMBOL(fb_register_client
);
29 * fb_unregister_client - unregister a client notifier
30 * @nb: notifier block to callback on events
32 int fb_unregister_client(struct notifier_block
*nb
)
34 return blocking_notifier_chain_unregister(&fb_notifier_list
, nb
);
36 EXPORT_SYMBOL(fb_unregister_client
);
39 * fb_notifier_call_chain - notify clients of fb_events
42 int fb_notifier_call_chain(unsigned long val
, void *v
)
44 return blocking_notifier_call_chain(&fb_notifier_list
, val
, v
);
46 EXPORT_SYMBOL_GPL(fb_notifier_call_chain
);