Well, after a brief but mostly thorough search of the monastery, I have found one other attempt at writing a device driver in perl.

Before I can ask for help with this, I need to give a brief explanation and perhaps some background.

Im using SunOS 5.8 ("Solaris 8") on a Sony VAIO subnote. It has a USB floppy drive which isnt quite supported by solaris, and a PCMCIA CD-ROM drive which is also not quite supported by solaris. Its onboard networking is fried, as the previous owner plugged a digital (high current) line into it and literally zapped the circuit traces on the board. So, while this is a great little critter for developing, it is 100% impossible to get data off of it (and I'm trying to use it to write a server in perl).

So the start of the solution here is a 3Com 'Megahertz' 10/100 network card, which is PCMCIA. Sun has excellent manpages and stuff, so writing the driver will be a bitch, but its not going to be fun because its C. I got to thinking last night that it might be possible to write a driver in perl, but it would have to call the C functions somewhere. Would this process be similar to the process people use to write C code for perl modules? It would be possible to extrapolate simple driver modules for perl using the manpages and whatnot. Has anyone done anything like this?

thanks
brother dep.

--
transcending "coolness" is what makes us cool.


In reply to Device Drivers in perl? by deprecated

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.