diff options
author | Cornelia Huck <cohuck@de.ibm.com> | 2006-01-06 03:19:22 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-06 11:33:51 -0500 |
commit | f97a56fb768e5fe9cd07c56ca47870136bb5530c (patch) | |
tree | 05108317a0cca7aa04cd68f4fcb7b7d3a295ddfa /drivers/s390/cio/css.h | |
parent | a8237fc4108060402d904bea5e1062e22e731969 (diff) |
[PATCH] s390: introduce for_each_subchannel
for_each_subchannel() is an iterator calling a function for every possible
subchannel id until non-zero is returned. Convert the current iterating
functions to it.
Signed-off-by: Cornelia Huck <cohuck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/s390/cio/css.h')
-rw-r--r-- | drivers/s390/cio/css.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/s390/cio/css.h b/drivers/s390/cio/css.h index f26e16daecb5..71efca25476d 100644 --- a/drivers/s390/cio/css.h +++ b/drivers/s390/cio/css.h | |||
@@ -126,6 +126,7 @@ extern struct css_driver io_subchannel_driver; | |||
126 | extern int css_probe_device(struct subchannel_id); | 126 | extern int css_probe_device(struct subchannel_id); |
127 | extern struct subchannel * get_subchannel_by_schid(struct subchannel_id); | 127 | extern struct subchannel * get_subchannel_by_schid(struct subchannel_id); |
128 | extern int css_init_done; | 128 | extern int css_init_done; |
129 | extern int for_each_subchannel(int(*fn)(struct subchannel_id, void *), void *); | ||
129 | 130 | ||
130 | #define __MAX_SUBCHANNEL 65535 | 131 | #define __MAX_SUBCHANNEL 65535 |
131 | 132 | ||