diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-03-12 09:04:21 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-05-20 15:43:58 +0200 |
commit | 932fff4911529d3663fa01b99cfb5dddb42feb6e (patch) | |
tree | 658b59aecea7960217fd063dac58cc450548097a /include/poller.h | |
parent | c10b20dc83ac25b1d81c39eaad4529d9911813b1 (diff) | |
download | barebox-932fff4911529d3663fa01b99cfb5dddb42feb6e.tar.gz barebox-932fff4911529d3663fa01b99cfb5dddb42feb6e.tar.xz |
poller: Give pollers a name
It helps debugging when pollers have a name, so give them one.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/poller.h')
-rw-r--r-- | include/poller.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/poller.h b/include/poller.h index b22b8a1b89..886557252b 100644 --- a/include/poller.h +++ b/include/poller.h @@ -12,9 +12,10 @@ struct poller_struct { void (*func)(struct poller_struct *poller); int registered; struct list_head list; + char *name; }; -int poller_register(struct poller_struct *poller); +int poller_register(struct poller_struct *poller, const char *name); int poller_unregister(struct poller_struct *poller); struct poller_async; @@ -27,7 +28,7 @@ struct poller_async { int active; }; -int poller_async_register(struct poller_async *pa); +int poller_async_register(struct poller_async *pa, const char *name); int poller_async_unregister(struct poller_async *pa); int poller_call_async(struct poller_async *pa, uint64_t delay_ns, |