diff options
Diffstat (limited to 'include/linux/cgroup.h')
-rw-r--r-- | include/linux/cgroup.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index cd105fce089c..b065d24486e6 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h | |||
@@ -506,16 +506,18 @@ struct cftype { | |||
506 | * you want to provide this functionality. Use eventfd_signal() | 506 | * you want to provide this functionality. Use eventfd_signal() |
507 | * on eventfd to send notification to userspace. | 507 | * on eventfd to send notification to userspace. |
508 | */ | 508 | */ |
509 | int (*register_event)(struct cgroup *cgrp, struct cftype *cft, | 509 | int (*register_event)(struct cgroup_subsys_state *css, |
510 | struct eventfd_ctx *eventfd, const char *args); | 510 | struct cftype *cft, struct eventfd_ctx *eventfd, |
511 | const char *args); | ||
511 | /* | 512 | /* |
512 | * unregister_event() callback will be called when userspace | 513 | * unregister_event() callback will be called when userspace |
513 | * closes the eventfd or on cgroup removing. | 514 | * closes the eventfd or on cgroup removing. |
514 | * This callback must be implemented, if you want provide | 515 | * This callback must be implemented, if you want provide |
515 | * notification functionality. | 516 | * notification functionality. |
516 | */ | 517 | */ |
517 | void (*unregister_event)(struct cgroup *cgrp, struct cftype *cft, | 518 | void (*unregister_event)(struct cgroup_subsys_state *css, |
518 | struct eventfd_ctx *eventfd); | 519 | struct cftype *cft, |
520 | struct eventfd_ctx *eventfd); | ||
519 | }; | 521 | }; |
520 | 522 | ||
521 | /* | 523 | /* |