summaryrefslogtreecommitdiff
path: root/device/io_req.h
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2007-05-06 16:50:04 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:27:09 +0200
commit289f62c55e200cfe11c689cb5a0e43240f977e65 (patch)
tree166fbde15bd51bd868180079a6540cc5e1643d7b /device/io_req.h
parent4777d7850b0f4826066a878b81b2223bc375886c (diff)
2007-05-06 Thomas Schwinge <tschwinge@gnu.org>
* device/buf.h (minphys): Add return type. * device/device_types_kernel.h: We're not in the eighties anymore... * device/io_req.h: Likewise.
Diffstat (limited to 'device/io_req.h')
-rw-r--r--device/io_req.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/device/io_req.h b/device/io_req.h
index 4d249c6..5988f55 100644
--- a/device/io_req.h
+++ b/device/io_req.h
@@ -46,6 +46,7 @@
/*
* IO request element, queued on device for delayed replies.
*/
+typedef struct io_req *io_req_t;
struct io_req {
struct io_req * io_next; /* next, ... */
struct io_req * io_prev; /* prev pointers: link in done,
@@ -68,8 +69,8 @@ struct io_req {
long io_alloc_size; /* amount allocated */
long io_residual; /* amount NOT done */
io_return_t io_error; /* error code */
- boolean_t (*io_done)(); /* call when done - returns TRUE
- if IO really finished */
+ /* call when done - returns TRUE if IO really finished */
+ boolean_t (*io_done)(io_req_t);
struct ipc_port *io_reply_port; /* reply port, for asynchronous
messages */
mach_msg_type_name_t io_reply_port_type;
@@ -84,7 +85,6 @@ struct io_req {
number */
long io_rectotal; /* total number of blocks to move */
};
-typedef struct io_req * io_req_t;
/*
* LOCKING NOTE: Operations on io_req's are in general single threaded by