--- libaitsched/inc/aitsched.h 2012/01/08 03:53:35 1.4.2.3 +++ libaitsched/inc/aitsched.h 2012/01/23 10:09:07 1.4.2.4 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitsched.h,v 1.4.2.3 2012/01/08 03:53:35 misho Exp $ +* $Id: aitsched.h,v 1.4.2.4 2012/01/23 10:09:07 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -150,6 +150,12 @@ struct sched_Task { TAILQ_ENTRY(sched_Task) task_node; }; typedef TAILQ_HEAD(, sched_Task) sched_queue_t; +#define TASK_DATA_SET(x, _dp, _dl) do { \ + if ((x)) { \ + (x)->task_data.iov_base = (_dp); \ + (x)->task_data.iov_len = _dl; \ + } \ + while (0) /* root task */ struct sched_RootTask {