From 289f62c55e200cfe11c689cb5a0e43240f977e65 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Sun, 6 May 2007 16:50:04 +0000 Subject: 2007-05-06 Thomas Schwinge * device/buf.h (minphys): Add return type. * device/device_types_kernel.h: We're not in the eighties anymore... * device/io_req.h: Likewise. --- device/io_req.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'device/io_req.h') 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 -- cgit v1.2.3