Root/
1 | /* |
2 | * linux/drivers/video/fb_notify.c |
3 | * |
4 | * Copyright (C) 2006 Antonino Daplas <adaplas@pol.net> |
5 | * |
6 | * 2001 - Documented with DocBook |
7 | * - Brad Douglas <brad@neruo.com> |
8 | * |
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 |
11 | * for more details. |
12 | */ |
13 | #include <linux/fb.h> |
14 | #include <linux/notifier.h> |
15 | |
16 | static BLOCKING_NOTIFIER_HEAD(fb_notifier_list); |
17 | |
18 | /** |
19 | * fb_register_client - register a client notifier |
20 | * @nb: notifier block to callback on events |
21 | */ |
22 | int fb_register_client(struct notifier_block *nb) |
23 | { |
24 | return blocking_notifier_chain_register(&fb_notifier_list, nb); |
25 | } |
26 | EXPORT_SYMBOL(fb_register_client); |
27 | |
28 | /** |
29 | * fb_unregister_client - unregister a client notifier |
30 | * @nb: notifier block to callback on events |
31 | */ |
32 | int fb_unregister_client(struct notifier_block *nb) |
33 | { |
34 | return blocking_notifier_chain_unregister(&fb_notifier_list, nb); |
35 | } |
36 | EXPORT_SYMBOL(fb_unregister_client); |
37 | |
38 | /** |
39 | * fb_notifier_call_chain - notify clients of fb_events |
40 | * |
41 | */ |
42 | int fb_notifier_call_chain(unsigned long val, void *v) |
43 | { |
44 | return blocking_notifier_call_chain(&fb_notifier_list, val, v); |
45 | } |
46 | EXPORT_SYMBOL_GPL(fb_notifier_call_chain); |
47 |
Branches:
ben-wpan
ben-wpan-stefan
javiroman/ks7010
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9