LP

Section: Special files (4)
Updated: January 15, 1995
Index
Return to Main Contents
 

NAME

lp - ¶óÀÎ ÇÁ¸°ÅÍ ÀåÄ¡  

SYNOPSIS

#include <linux/lp.h>  

CONFIGURATION

lp[0-2) ´Â º´·Ä ÇÁ¸°Å͸¦ À§ÇÑ ¹®ÀÚ ÀåÄ¡ÀÌ´Ù; ¸ÞÀÌÀú ³Ñ¹ö 6°ú ¸¶ÀÌ³Ê ³Ñ¹ö 0-2¸¦ °¡Áö°í ÀÖ´Ù. ¸¶ÀÌ³Ê ³Ñ¹ö´Â ÇÁ¸°ÅÍ Æ÷Æ® ±âÃÊ ¾îµå·¡½º0x03bc, 0x0378¿Í 0x0278¿¡ ´ëÀÀÇÑ´Ù. º¸Åë ¸ðµå 220À» °¡Áö°í ÀÖÀ¸¸ç root°ú ±×·ì lp¿¡ ¼ÓÇÑ´Ù. ÇÁ¸°ÅÍ Æ÷Æ®´Â Ç®¸µÀ̳ª ÀÎÅÍ·´Æ® µÑ ´Ù·Î »ç¿ëÇÒ ¼ö ÀÖ´Ù. ·¹ÀÌÀú ÇÁ¸°ÅÍ¿Í °°ÀÌ »ç¿ë·®ÀÌ ¸¹Àº °æ¿ì ÀÎÅÍ·´Æ®¸¦ ±ÇÇÑ´Ù. º¸ÅëÀÇ µµÆ® ÇÁ¸°ÅÍ¿¡´Â Ç®¸µÀ̸é ÃæºÐÇÏ´Ù. µðÆúÆ®°ªÀº Ç®¸µÀÌ´Ù.  

DESCRIPTION

¾Æ·¡ÀÇ ioctl(2) ½ÅÈ£°¡ Áö¿øµÈ´Ù:
int ioctl(int fd, LPTIME, int arg)
ÇÁ¸°ÅÍ ¹öÆÛ°¡ arg ·Î °¡µæ Âû µí ÇÑ °æ¿ì, ÇÁ¸°Å͸¦ ´Ù½Ã °Ë»çÇϱâ Àü¿¡ µå¶óÀ̹ö°¡ ¸ØÃç ÀÖ´Â ½Ã°£À» ¼³Á¤ÇÑ´Ù. ºü¸¥ ÇÁ¸°Å͸¦ °¡Áö°í ÀÖ´Ù¸é, ÀÌ ½Ã°£À» ÁÙÀδÙ: ÀÌ°ÍÀÌ ´Ã¾î³ª´Â °Íº¸´Ù ´À¸° ÇÁ¸°ÅͶó¸é, ÀÌ ½Ã°£Àº ¼ö¹éÃÊ°¡ °É¸°´Ù. µðÆúÆ®´Â 2¿¡¼­ 0.02ÃÊ Á¤µµ ÀÖ´Ù. ÀÌ°ÍÀº ¿ÀÁ÷ Ç®¸µ µå¶óÀ̹ö¿¡¸¸ ¿µÇâÀ» ÁØ´Ù.
int ioctl(int fd, LPCHAR, int arg)
ÇÁ¸°ÅÍ°¡ arg¿¡¼­ ¹®ÀÚ¸¦ ¹Þ¾Æ Àμ⸦ À§ÇÑ Áغñ°¡ ³¡³ª±â¸¦ ±â´Ù¸®´Â µ¿¾È Ç®¸µ µå¶ó¾Æ¹ö°¡ ÇÏ´Â busy-wait ¼øȯÀÇ ÃÖ´ë Ƚ¼ö¸¦ ¼³Á¤ÇÑ´Ù. ÀμⰡ ³Ê¹« ´À¸®¸é, ÀÌ ¼ýÀÚ¸¦ ¿Ã·Áº»´Ù: ½Ã½ºÅÛÀÌ Áö³ªÄ¡°Ô ´À¸®¸é ÀÌ ¼ýÀÚ¸¦ ÁÙ¿©º»´Ù. µðÆúÆ®°ªÀº 1000ÀÌ´Ù. Ç®¸µ µå¶óÀ̹ö¿¡¸¸ Àû¿ëµÈ´Ù.
int ioctl(int fd, LPABORT, int arg)
arg°¡ 0À̸é, ÇÁ¸°ÅÍ µå¶óÀ̹ö´Â ¿¡·¯¸¦ ´Ù½Ã È®ÀÎÇÏ°í, ±×·¸Áö ¾ÊÀ¸¸é ¸ØÃá´Ù. µðÆúÆ® °ªÀº 0ÀÌ´Ù
int ioctl(int fd, LPABORTOPEN, int arg)
arg°¡ 0À̸é, open(2) Àº ¿¡·¯·Î ³¡³»°í ±×·¸Áö ¾ÊÀ¸¸é ¿¡·¯°¡ ¹«½ÃµÈ´Ù. µðÆúÆ®´Â ¹«½ÃÇÏ´Â °ÍÀÌ´Ù.t.
int ioctl(int fd, LPCAREFUL, int arg)
arg°¡ 0À̸é, ¿ëÁö ¾øÀ½, ¿ÀÇÁ¶óÀÎ, ¿¡·¯ »çÀÎÀÌ ¸ðµç ¾²±â¸¦ ¸ØÃß°Ô ÇÑ´Ù, ȤÀº ¹«½ÃÇÑ´Ù. µðÆúÆ®´Â ¹«½ÃÇÏ´Â °ÍÀÌ´Ù.
int ioctl(int fd, LPWAIT, int arg)
¸· ¾²¿©Áø ¹®ÀÚ¸¦ ¹Þ±â À§ÇØ ÇÁ¸°ÅÍ°¡ ¿¹¿­ µÇ±â Àü±îÁö ±â´Ù¸®´Â busy-wait ¼øȯÀÇ È½¼ö¿Í ¿¹¿­±â°¡ ´Ù½Ã ²¨Áú ¶§ ±îÁö arg¸¦ ±â´Ù¸®´Â Ƚ¼ö¸¦ Á¤ÇÑ´Ù. ¼³¸í¼­¿¡¼­´Â 0.5ms·Î Ç϶ó°í ÇÏÁö¸¸, °æÇè»ó ÄÚµå·Î ÀÎÇÑ Áöü¸¸À¸·Îµµ ÃæºÐÇÏ´Ù. ±×·¡¼­ µðÆúÆ® °ªÀº 0ÀÌ´Ù. ÀÌ°ÍÀº Ç®¸µÀ̳ª ÀÎÅÍ·´Æ® µå¶óÀÌºê ¸ðµÎ¿¡°Ô ÇØ´çµÈ´Ù.
int ioctl(int fd, LPSETIRQ, int arg)
ioctl()Àº À¯ÆÛÀ¯ÀúÀÇ ±ÇÇÑÀÌ ÇÊ¿äÇÏ´Ù. ÀÌ°ÍÀº »õ·Î¿î IRQ¸¦ °¡Áø int°¡ ÇÊ¿äÇÏ´Ù. ºÎ¼öÀûÀÎ È¿°ú·Î ÇÁ¸°ÅÍ´Â ¸®¼ÂµÈ´Ù. arg°¡ 0À̸é, Ç®¸µ µå¶óÀ̹ö°¡ »ç¿ëµÇ°í ÀÖ´Â °ÍÀÌ´Ù. ÀÌ°Í ¿ª½Ã µðÆúÆ® °ªÀÌ´Ù.
int ioctl(int fd, LPGETIRQ, int *arg)
ÇöÁ¦ arg¿¡¼­ »ç¿ëÇÏ°í ÀÖ´Â IRQ¸¦ ÀúÀåÇÑ´Ù.
int ioctl(int fd, LPGETSTATUS, int *arg)
arg¿¡¼­ Æ÷Æ®ÀÇ »óÅ °ªÀ» ÀúÀåÇÑ´Ù. ºñÆ®´Â ¾Æ·¡¿Í °°Àº ¶æÀ» °¡Áø´Ù.:

LP_PBUSYinverted busy input, active high
LP_PACKunchanged acknowledge input, active low
LP_POUTPAunchanged out-of-paper input, active high
LP_PSELECDunchanged selected input, active high
LP_PERRORPunchanged error input, active low

½ÅÈ£ÀÇ ¶æÀº °¢ÀÚÀÇ ÇÁ¸°ÅÍ ¼³¸í¼­¸¦ ÂüÁ¶Ç϶ó. ÇÁ¸°ÅÍ¿¡ µû¶ó ¾Ë·ÁÁöÁö ¾ÊÀº ºñÆ®°¡ ÀÖÀ» ¼ö ÀÖÀ½À» ±â¾ïÇÏÀÚ.

int ioctl(int fd, LPRESET)
ÇÁ¸°Å͸¦ ¸®¼ÂÇÑ´Ù. ¾²ÀÌ´Â µ¶¸³º¯¼ö ¾øÀ½.
 

FILES

/dev/lp*  

AUTHORS

ÇÁ¸°ÅÍ µå¶óÀ̹ö´Â Jim Weigand and Linus Torvalds¿¡ ÀÇÇØ ¾²¿©Á³´Ù. ±× ÈÄ Michael K. Johnson¿¡ ÀÇÇØ ¹ßÀüµÇ¾ú´Ù. Nigel Gamble¿¡ ÀÇÇØ ÀÎÅÍ·´Æ® Äڵ尡 ¾²¿©Á³°í, Alan Cox ¿¡ ÀÇÇØ ¸ðµâÈ­ µÇ¾ú´Ù. LPCAREFUL, LPABORT, LPGETSTATUS°¡ Chris Metcalf¿¡ ÀÇÇØ Ã·°¡µÇ¾ú´Ù..  

SEE ALSO

mknod(1), chown(1), chmod(1), tunelp(8), lpcntl(8)


 

Index

NAME
SYNOPSIS
CONFIGURATION
DESCRIPTION
FILES
AUTHORS
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 08:07:01 GMT, March 25, 2004