32 lines
522 B
C
32 lines
522 B
C
|
/*
|
||
|
* Copyright (C) 2010 Marc Kleine-Budde <mkl@pengutronix.de>
|
||
|
*
|
||
|
* This file is released under the GPLv2
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
#ifndef POLLER_H
|
||
|
#define POLLER_H
|
||
|
|
||
|
#include <linux/list.h>
|
||
|
|
||
|
struct poller_struct {
|
||
|
void (*func)(struct poller_struct *poller);
|
||
|
|
||
|
struct list_head list;
|
||
|
};
|
||
|
|
||
|
int poller_register(struct poller_struct *poller);
|
||
|
int poller_unregister(struct poller_struct *poller);
|
||
|
|
||
|
|
||
|
#ifdef CONFIG_POLLER
|
||
|
void poller_call(void);
|
||
|
#else
|
||
|
static inline void poller_call(void)
|
||
|
{
|
||
|
}
|
||
|
#endif /* CONFIG_POLLER */
|
||
|
|
||
|
#endif /* !POLLER_H */
|