--- libaitsched/inc/aitsched.h 2012/08/02 09:19:31 1.11.2.6 +++ libaitsched/inc/aitsched.h 2012/08/02 11:37:08 1.11.2.7 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitsched.h,v 1.11.2.6 2012/08/02 09:19:31 misho Exp $ +* $Id: aitsched.h,v 1.11.2.7 2012/08/02 11:37:08 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -456,10 +456,11 @@ inline sched_task_t *schedAIOWrite(sched_root_task_t * * @fd = file descriptor * @bufs = Buffer's list * @nbufs = Number of Buffers + * @offset = Offset from start of file, if =-1 from current position * return: NULL error or !=NULL new queued task */ inline sched_task_t *schedLIORead(sched_root_task_t * __restrict root, sched_task_func_t func, - void *arg, int fd, struct iovec *bufs, size_t nbufs); + void *arg, int fd, struct iovec *bufs, size_t nbufs, off_t offset); /* * schedLIOWrite() - Add list of AIO write tasks to scheduler queue * @@ -469,10 +470,11 @@ inline sched_task_t *schedLIORead(sched_root_task_t * * @fd = file descriptor * @bufs = Buffer's list * @nbufs = Number of Buffers + * @offset = Offset from start of file, if =-1 from current position * return: NULL error or !=NULL new queued task */ inline sched_task_t *schedLIOWrite(sched_root_task_t * __restrict root, sched_task_func_t func, - void *arg, int fd, struct iovec *bufs, size_t nbufs); + void *arg, int fd, struct iovec *bufs, size_t nbufs, off_t offset); #endif /* EVFILT_LIO */ #endif /* EVFILT_AIO */