aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/slow-work.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/slow-work.h b/include/linux/slow-work.h
index b65c8881f07a..9adb2b30754f 100644
--- a/include/linux/slow-work.h
+++ b/include/linux/slow-work.h
@@ -24,6 +24,9 @@ struct slow_work;
24 * The operations used to support slow work items 24 * The operations used to support slow work items
25 */ 25 */
26struct slow_work_ops { 26struct slow_work_ops {
27 /* owner */
28 struct module *owner;
29
27 /* get a ref on a work item 30 /* get a ref on a work item
28 * - return 0 if successful, -ve if not 31 * - return 0 if successful, -ve if not
29 */ 32 */
@@ -42,6 +45,7 @@ struct slow_work_ops {
42 * queued 45 * queued
43 */ 46 */
44struct slow_work { 47struct slow_work {
48 struct module *owner; /* the owning module */
45 unsigned long flags; 49 unsigned long flags;
46#define SLOW_WORK_PENDING 0 /* item pending (further) execution */ 50#define SLOW_WORK_PENDING 0 /* item pending (further) execution */
47#define SLOW_WORK_EXECUTING 1 /* item currently executing */ 51#define SLOW_WORK_EXECUTING 1 /* item currently executing */
@@ -84,8 +88,8 @@ static inline void vslow_work_init(struct slow_work *work,
84} 88}
85 89
86extern int slow_work_enqueue(struct slow_work *work); 90extern int slow_work_enqueue(struct slow_work *work);
87extern int slow_work_register_user(void); 91extern int slow_work_register_user(struct module *owner);
88extern void slow_work_unregister_user(void); 92extern void slow_work_unregister_user(struct module *owner);
89 93
90#ifdef CONFIG_SYSCTL 94#ifdef CONFIG_SYSCTL
91extern ctl_table slow_work_sysctls[]; 95extern ctl_table slow_work_sysctls[];