9 #define BLOCK_SUCC_DONE 0
10 #define BLOCK_STOP_CHAIN 1
22 int (*hook
)(const struct event_block
*self
, unsigned long event
,
24 struct event_block
*next
;
28 struct event_block
*head
;
29 struct mutexlock lock
;
32 static inline void init_event_head(struct event_head
*head
)
35 mutexlock_init(&head
->lock
);
38 extern int register_event_hook(struct event_block
**head
,
39 struct event_block
*block
);
40 extern int register_event_hook_once(struct event_block
**head
,
41 struct event_block
*block
);
42 extern int unregister_event_hook(struct event_block
**head
,
43 struct event_block
*block
);
44 extern int call_event_hooks(struct event_block
**head
, unsigned long event
,
45 const void *arg
, int *called
);
47 #endif /* NOTIFIER_H */