|Syntactic Confectionery Delight|
Device Drivers in perl?by deprecated (Priest)
|on Mar 05, 2001 at 17:45 UTC||Need Help??|
deprecated has asked for the wisdom of the Perl Monks concerning the following question:
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?