Intercepting I/O requests

This is a discussion on Intercepting I/O requests within the Linux Programming forums, part of the Platform Specific Boards category; Hey people, I'm thinking about potential projects for a course and i need an opinion. How difficult would it be ...

  1. #1
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640

    Intercepting I/O requests

    Hey people, I'm thinking about potential projects for a course and i need an opinion.

    How difficult would it be to intercept all I/O requests going to a physical device (ie. insert a layer between the host processes and physical storage devices). Some software layer that could schedule I/O requests going to the physical device.

    I've never done this type of low level application, I'm just looking for a general idea of what's involved to accomplish something like this.

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Tricky, very tricky. For individual applications, it's somewhat possible: you can wrap up apps and replace some dev files with your own just for them. I don't know how, but both arts and esd have tools that emulate oss this way.
    For the whole system, though, I think you need to hack the kernel.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    hmmm, kernel hacking would be bad. Anyway, I've decided to go with a different project anyway. Thanks for the input

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Buffered/UnBuffered I/O
    By valaris in forum C Programming
    Replies: 1
    Last Post: 08-07-2008, 12:31 AM
  2. asynchronized I/O == multiplexing I/O?
    By George2 in forum C Programming
    Replies: 1
    Last Post: 07-24-2006, 11:06 AM
  3. why page based I/O can improve performance?
    By George2 in forum C Programming
    Replies: 1
    Last Post: 06-12-2006, 08:42 AM
  4. Writing all HTTP requests from a website to a log file
    By goomyman in forum C# Programming
    Replies: 1
    Last Post: 07-29-2005, 10:18 AM
  5. Overlapped I/O and Completion Port :: Winsock
    By kuphryn in forum Windows Programming
    Replies: 0
    Last Post: 10-30-2002, 05:14 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21