5 * Notifer chains loosely based on the according Linux framework
8 struct notifier_block
{
9 int (*notifier_call
)(struct notifier_block
*, unsigned long, void *);
10 struct list_head list
;
13 struct notifier_head
{
14 struct list_head blocks
;
17 int notifier_chain_register(struct notifier_head
*nh
, struct notifier_block
*n
);
19 int notifier_call_chain(struct notifier_head
*nh
, unsigned long val
, void *v
);
22 * Register a function which is called upon changes of
23 * clock frequencies in the system.
25 int clock_register_client(struct notifier_block
*nb
);
26 int clock_unregister_client(struct notifier_block
*nb
);
27 int clock_notifier_call_chain(void);
29 #define NOTIFIER_HEAD(name) \
30 struct notifier_head name = { \
31 .blocks = LIST_HEAD_INIT((name).blocks), \
34 #endif /* __NOTIFIER_H */