Re: [PARPORT] Programming for the parport.


Tim Waugh (tim@cyberelk.demon.co.uk)
Sun, 19 Apr 1998 15:30:14 +0100 (BST)


On Sat, 18 Apr 1998 ccurtis@facm.fit.edu wrote:

> If you need kernel-level priveledges (remember that you can always just
> open /dev/parport0 and start doing stream I/O) you ought to be developing
> aginst the new kernels, and not 2.0.33 - there have been a lot of changes
> in parport code, and 'development' is probably a better place to start.

Er.. /dev/parport0 doesn't really work like that yet. For a start, it
doesn't yet exist. "ppuser" can be found at torque.net, and provides the
kernel module for /dev/parport0, but it needs some work. Feel free to
take a look. There's an example program there for writing a very dumb
printer driver in user-space.

> > is there a 2.0.33 kernel compatible driver that will allow me rd/wr
> > access to the parallel port ?
>
> main()
> {
> FILE *printer_or_webcam;
>
> if( !(printer_or_webcam = fopen( "/dev/parport0", "r+" )))
> { printf( "Cannot open parport0: permissions?" );
> return 1;
> }
>
> [...]
>
> return 0;
> }

Again, this isn't in 2.1.x, let alone 2.0.33, and it doesn't really work
like that yet anyway. It _should_ do, but at the moment it's all done
with ioctls.

Tim.
*/

-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- with the single word "unsubscribe" in the body of the message. --



This archive was generated by hypermail 2.0b3 on Wed 30 Dec 1998 - 10:17:38 EST