* Added FS interface hooks io() and cancel_io(). The former is supposed

to provide asynchrounous (or only synchronous, if asynchronous is not
  supported) I/O request support. It will eventually replace
  {read,write}_pages(). None of the FS implementations implement them
  yet.
* Implemented some support functions for request-based I/O. File system
  implementations can use do_fd_io() which passes an I/O request to the
  layer responsible for a given FD, and do_iterative_fd_io(), which
  translates a request for a file to subrequests for the underlying
  device and passes them on. Both fall back to synchrounous processing
  when the io() hook is not supported.
  Furthermore added vfs_synchronous_io() which should be handy for the
  devfs to perform io_requests synchronously for devices that don't
  support the io() hook.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26655 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2008-07-28 02:07:20 +00:00
parent 09f0e0ec68
commit ec598fe493
15 changed files with 472 additions and 4 deletions
+3
View File
@@ -980,6 +980,9 @@ static fs_vnode_ops sFIFOVnodeOps = {
&fifo_read_pages,
&fifo_write_pages,
NULL, // io()
NULL, // cancel_io()
NULL, // get_file_map
/* common */