ioport

22:59 < rjones> well, you know, I actually want some
enhancements to /dev/port (on x86)
23:00 < rjones> for example, it's not possible to
specify if you want byte/word/.. access
23:00 < rjones> which of course means its not possible
to access certain devices which are expecting non-byte-
sized reads or writes ..
23:01 < rjones> somehow no one has added these
important ioctls to /dev/port in the 20+ years its been
around
23:01 < rjones> I suspect because no one has realized
the importance of writing device drivers
in shell script
23:06 < dmick> where's that vomit emoticon when you
need it

3 Comments

Filed under Uncategorized

3 responses to “ioport

  1. Laszlo Ersek

    A nice bash.org candidate!😉

  2. GNUtoo

    Seriously?

    As I understand you have no way to guarantee the atomicity of such
    operations when done in userspace.

    If you do something like that:
    # outb $value $port
    # inb $port

    Another in or out might be executed in between…
    This is dangerous…

    Denis.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s