User: Password:
|
|
Subscribe / Log in / New account

System calls and 64-bit architectures

System calls and 64-bit architectures

Posted Dec 18, 2008 13:40 UTC (Thu) by abatters (✭ supporter ✭, #6932)
In reply to: System calls and 64-bit architectures by meuh
Parent article: System calls and 64-bit architectures

While you are at it, put a direction flag in each vector so that you can submit reads and writes at the same time. And put the file descriptor in each vector too so that you can submit I/O to different files with one syscall. Then make it asynchronous and add in an optional signal upon completion. Oh wait, io_submit() already does all that.


(Log in to post comments)

System calls and 64-bit architectures

Posted Dec 21, 2008 22:51 UTC (Sun) by jlokier (guest, #52227) [Link]

Except that Linux AIO (io_submit) isn't always asynchronous, and you can't easily tell when it will block the caller.

Some folks asking for preadv/pwritev are actually doing so because they rejected Linux AIO for being too broken to use.

They are preferring to use preadv/pwritev in userspace helper threads, than Linux AIO, because at least with threads it is always asynchronous.


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds