3 * Copyright (C) 2010 - 2013 UNISYS CORPORATION
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or (at
9 * your option) any later version.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
14 * NON INFRINGEMENT. See the GNU General Public License for more
18 #ifndef __PERIODIC_WORK_H__
19 #define __PERIODIC_WORK_H__
23 /* PERIODIC_WORK an opaque structure to users.
24 * Fields are declared only in the implementation .c files.
28 struct periodic_work *visor_periodic_work_create(ulong jiffy_interval,
29 struct workqueue_struct *workqueue,
30 void (*workfunc)(void *),
33 void visor_periodic_work_destroy(struct periodic_work *pw);
34 BOOL visor_periodic_work_nextperiod(struct periodic_work *pw);
35 BOOL visor_periodic_work_start(struct periodic_work *pw);
36 BOOL visor_periodic_work_stop(struct periodic_work *pw);