lp(4) Device Drivers Manual lp(4) lp - #include lp[0-2] are character devices for the parallel line printers; they have major number 6 and minor number 0-2. The minor numbers correspond to the printer port base addresses 0x03bc, 0x0378, and 0x0278. Usually they have mode 220 and are owned by user root and group lp. You can use printer ports either with polling or with interrupts. Interrupts are recommended when high traffic is expected, for example, for laser printers. For typical dot matrix printers, polling will usually be enough. The default is polling. ioctl(2): int ioctl(int fd, LPTIME, int arg) arg, . , , , . ; 2, 0,02 . . int ioctl(int fd, LPCHAR, int arg) arg, . , , , . 1000. . int ioctl(int fd, LPABORT, int arg) arg 0, , . 0. int ioctl(int fd, LPABORTOPEN, int arg) arg 0, open(2) , . 0. int ioctl(int fd, LPCAREFUL, int arg) arg 0, , , , . . int ioctl(int fd, LPWAIT, int arg) arg, , . , 0,5 , , . 0. , . int ioctl(int fd, LPSETIRQ, int arg) ioctl(2) . int, IRQ. -- . arg 0, ( ). int ioctl(int fd, LPGETIRQ, int *arg) IRQ arg. int ioctl(int fd, LPGETSTATUS, int *arg) arg. : LP_PBUSY , LP_PACK , LP_POUTPA , LP_PSELECD , LP_PERRORP , . , . int ioctl(int fd, LPRESET) . . /dev/lp* . chmod(1), chown(1), mknod(1), lpcntl(8), tunelp(8) Artyom Kunyov , Azamat Hackimov , Dmitry Bolkhovskikh , Katrin Kutepova , Konstantin Shvaykovskiy , Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 5 2023 . lp(4)