version 1.10.2.3, 2012/08/01 14:11:43
|
version 1.10.2.5, 2012/08/01 22:12:39
|
Line 585 schedAIORead(sched_root_task_t * __restrict root, sche
|
Line 585 schedAIORead(sched_root_task_t * __restrict root, sche
|
} else |
} else |
acb->aio_offset = off; |
acb->aio_offset = off; |
acb->aio_sigevent.sigev_notify = SIGEV_KEVENT; |
acb->aio_sigevent.sigev_notify = SIGEV_KEVENT; |
acb->aio_sigevent.sigev_notify_kevent_flags = EV_CLEAR | EV_DISPATCH; |
|
acb->aio_sigevent.sigev_notify_kqueue = root->root_kq; |
acb->aio_sigevent.sigev_notify_kqueue = root->root_kq; |
acb->aio_sigevent.sigev_value.sival_ptr = (void*) O_RDONLY; | acb->aio_sigevent.sigev_value.sival_ptr = acb; |
|
|
if (aio_read(acb)) { |
if (aio_read(acb)) { |
LOGERR; |
LOGERR; |
Line 623 schedAIOWrite(sched_root_task_t * __restrict root, sch
|
Line 622 schedAIOWrite(sched_root_task_t * __restrict root, sch
|
|
|
if (!root || !func) |
if (!root || !func) |
return NULL; |
return NULL; |
else |
|
memset(buffer, 0, buflen); |
|
|
|
if (!(acb = malloc(sizeof(struct aiocb)))) { |
if (!(acb = malloc(sizeof(struct aiocb)))) { |
LOGERR; |
LOGERR; |
Line 643 schedAIOWrite(sched_root_task_t * __restrict root, sch
|
Line 640 schedAIOWrite(sched_root_task_t * __restrict root, sch
|
} else |
} else |
acb->aio_offset = off; |
acb->aio_offset = off; |
acb->aio_sigevent.sigev_notify = SIGEV_KEVENT; |
acb->aio_sigevent.sigev_notify = SIGEV_KEVENT; |
acb->aio_sigevent.sigev_notify_kevent_flags = EV_CLEAR | EV_DISPATCH; |
|
acb->aio_sigevent.sigev_notify_kqueue = root->root_kq; |
acb->aio_sigevent.sigev_notify_kqueue = root->root_kq; |
acb->aio_sigevent.sigev_value.sival_ptr = (void*) O_WRONLY; | acb->aio_sigevent.sigev_value.sival_ptr = acb; |
|
|
if (aio_write(acb)) { |
if (aio_write(acb)) { |
LOGERR; |
LOGERR; |