¹öÀü 1.1.54ÀÌÀüÀÇ LEDs´Â ´ÜÁö ÀÏÄ¡ÇÏ´Â Å°º¸µå Ç÷¡±×ÀÇ »óŸ¦ ¹Ý¿µÇÑ´Ù.
±×¸®°í KDGTLED/KDSTLED´Â ¶ÇÇÑ Å°º¸µå Ç÷¡±×¸¦ ¹Ù²Û´Ù. ¹öÀü1.1.54ºÎÅÍ
LEDs´Â »óȲ¿¡ µû¶ó µð½ºÅ¬·¹À̸¦ Á¶ÀýÇÑ´Ù. ±×·¯³ª ±âº»°ª¿¡ ÀÇÇØ leds´Â
Å°º¸µåÇ÷¡±×¸¦ µð½ºÇ÷¹ÀÌÇÑ´Ù. ´ÙÀ½ µÎ°³ÀÇ ÀÔÃâ·ÂÁ¦¾î´Â Å°º¸µåÇ÷¡±×
¿¡ ¾×¼¼½ºÇϴµ¥ »ç¿ëµÈ´Ù.
- KDGKBLED
-
capsLock, NumLock,ScrollLock¿Í °°Àº Å°º¸µå Ç÷¡±×¸¦ ÃëÇÑ´Ù.
argp´Â Ç÷¡±×»óŸ¦ ¼³Á¤ÇÏ´Â char¸¦ °¡¸®Å²´Ù.
Àú¼öÁØ ÁöÁ¤ ºñÆ®(mask 0x7)´Â ÇöÀç Ç÷¡±× »óŸ¦ ÃëÇÏ°í,
³ª¸ÓÁö´Â ±âº» Ç÷¡±× »óŸ¦ ÃëÇÑ´Ù.
- KDSKBLED
-
CapsLock, NumLock, ScrollLock°°Àº Å°º¸µåÇ÷¡±×¸¦ ¼³Á¤ÇÑ´Ù.
argp´Â ¿øÇÏ´Â Ç÷¡±× »óŸ¦ °®´Â´Ù.
Àú¼öÁØ ÁöÁ¤ ºñÆ®´Â ÇöÀç Ç÷¡±× »óŸ¦ ÃëÇÏ°í,
³ª¸ÓÁö´Â ±âº» Ç÷¡±× »óŸ¦ ÃëÇÑ´Ù.
- KDGKBTYPE
-
Å°º¸µå ŸÀÔÀ» ÃëÇÑ´Ù. ÀÌ°ÍÀº 0x02·Î Á¤ÀǵǴ KB_101°ªÀ» ¹ÝȯÇÑ´Ù.
- KDADDIO
-
À¯È¿ÇÑ ÀÔÃâ·Â Æ÷Æ®¸¦ Ãß°¡ÇÑ´Ù. ioperm(arg,1,1)°ú °°´Ù.
- KDDELIO
-
À¯È¿ÇÑ ÀÔÃâ·Â Æ÷Æ®¸¦ »èÁ¦ÇÑ´Ù. ioperm(arg,1,0)°ú °°´Ù.
- KDENABIO
-
ºñµð¿Àº¸µå·Î ÀÔÃâ·ÂÀÌ °¡´ÉÇÏ´Ù. ioperm(0x3b4, 0x3df-0x3b4+1,1)°ú °°´Ù.
- KDDISABIO
-
ºñµð¿Àº¸µå·Î ÀÔÃâ·ÂÀÌ ºÒ°¡´ÉÇÏ´Ù. ioperm(0x3b4, 0x3df-0x3b4+1,0)°ú °°´Ù.
- KDSETMODE
-
ÅؽºÆ®/±×·¡ÇÈ ¸ðµå¸¦ ¼³Á¤ÇÑ´Ù. argp´Â ´ÙÀ½Áß Çϳª´Ù:
KD_TEXT 0x00
KD_GRAPHICS 0x01
- KDGETMODE
-
ÅؽºÆ®/±×·¡ÇÈ ¸ðµå¸¦ ÃëÇÑ´Ù. argp´Â À§ÀÇ °ªÁß Çϳª¸¦ ¼³Á¤ÇÏ´Â long
À» °¡¸®Å²´Ù.
- KDMKTONE
-
ƯÁ¤ ±æÀÌÀÇ Åæ(tone)»ý¼ºÇÑ´Ù.
argpÀÇ ³·Àº 16ºñÆ®´Â ½Ã°£»çÀÌŬÀÇ ±â°£À» ¿°ÅÇÏ°í,
³ôÀº 16ºñÆ®´Â msec¿¡ ±â°£À» ÁØ´Ù.
±â°£ÀÌ 0À̸é, ¼Ò¸®´Â Áï½Ã ²¨Áø´Ù. Á¦¾î·Â Áï½Ã ¹ÝȯµÈ´Ù.
- KIOCSOUND
-
»ç¿îµå »ý¼ºÀ» ½ÃÀÛÇϰųª ¸ØÃá´Ù. argpÀÇ ³·Àº 16ºñÆ®´Â ½Ã°£»çÀÌŬÀÇ ±â°£
À» ¿°ÅÇÑ´Ù.(Áï, argp = 1193180/frequency)
argp = 0Àº ¼Ò¸®¸¦ ²ö´Ù. °°Àº °æ¿ì·Î, Á¦¾î·ÂÀº Áï½Ã ¹ÝȯµÈ´Ù.
- GIO_CMAP
-
Ä¿³Î·ÎºÎÅÍ ÇöÀç ±âº» Ä÷¯¸ÊÀ» ¾ò´Â´Ù. argp´Â 48-¹ÙÀÌÆ® ¹è¿À» °¡
¸®Å²´Ù.(¹öÀü 1.3.3ºÎÅÍ)
- PIO_CMAP
-
±âº» ÅؽºÆ®¸ðµå Ä÷¯¸ÊÀ» ¹Ù²Û´Ù. argp´Â 16ºñÆ®Ä÷¯¸¦ À§ÇÑ »¡°,³ì»ö,
ÆĶû»ö°ªÀ» Æ÷ÇÔÇÏ´Â 48-¹ÙÀÌÆ® ¹è¿À» °¡¸®Å²´Ù: 0 is off, and 255 is full intensity.
±âº»»öÀº °ËÁ¤, ¾ÏÀû»ö(dark red), ¾Ï³ì»ö(dark green), °¥»ö, ¾Ïû»ö(dark blue),
¹àÀº »¡°, ¹àÀº ³ì»ö, ³ë¶û, ¹àÀº ÆĶû, ¹àÀº ÀÚÁÖ, ¹àÀº û·Ï»ö, Èò»öÀÌ´Ù.
- GIO_FONT
-
È®ÀåµÈ 256-¹®ÀÚ ÆùÆ®¸¦ ÃëÇÑ´Ù. argp´Â 8192¹ÙÀÌÆ® ¹è¿À» °¡¸®Å²´Ù.
ÇöÀç ·ÎµåµÈ ÆùÆ®°¡ 512-¹®ÀÚ ÆùÆ®À̰ųª ÄܼÖÀÌ ÅؽºÆ® ¸ðµå°¡ ¾Æ´Ï¶ó¸é
EINVARÄÚµå¿Í ÇÔ²² ÀÛµ¿ÇÏÁö ¾Ê´Â´Ù.
- GIO_FONTX
-
ȸéÆùÆ®¿Í °ü·ÃÁ¤º¸¸¦ ¾ò´Â´Ù. argp´Â consolefontdiscÀ» °¡¸®Å²´Ù.
(PIO_FONTX ÂüÁ¶). È£Ãâ½Ã charcountÇʵå´Â ¹®ÀÚÁß °¡ÀåÅ« ¼öÄ¡
·Î ¼³Á¤µÇ¾î¾ß ÇÑ´Ù. ¹Ýȯ½Ã, charcount¿Í charheight´Â
ÇöÀç ·ÎµåµÈ ÆùÆ®¸¦ À§ÇÑ °ü·Ã µ¥ÀÌŸ·Î ä¿öÁ®¾ß ÇÑ´Ù. ±×¸®°í
chardata¹è¿Àº charcountÀÇ ÃʱⰪÀÌ Áö½ÃÇÏ´Â ÃæºÐÇÑ
°ø°£ÀÌ ÀÖ´Ù¸é ÆùÆ®µ¥ÀÌŸ¸¦ Æ÷ÇÔÇÑ´Ù. ±×·¸Áö ¾ÊÀ¸¸é ¹öÆÛ´Â ±×´ë·Î ÀÖ°í,
errno´Â ENOMEM¸¦ ¼³Á¤ÇÑ´Ù.(¹öÀü 1.3.1ºÎÅÍ)
- PIO_FONT
-
ȸé ÆùÆ®¸¦ 256-¹®ÀÚ·Î ¼³Á¤ÇÑ´Ù. EGA/VGA¹®ÀÚ»ý¼º±â·ÎºÎÅÍ ÆùÆ®¸¦ ·ÎµåÇÑ´Ù.
argp´Â ¹®ÀÚ¸¶´Ù 32¹ÙÀÌÆ®ÀÎ 8192¸ÊÀ» °¡¸®Å²´Ù. ´ÜÁö ±×·±°Íµé Áß Ã¹
N´Â 8xNÆùÆ®¸¦ À§ÇØ »ç¿ëµÈ´Ù(0 < N <= 32).
ÀÌ È£ÃâÀº ¶ÇÇÑ À¯´ÏÄڵ带 ¾µ¸ð ¾ø°Ô ÇÑ´Ù.
- PIO_FONTX
-
½ºÅ©¸° ÆùÆ®¿Í °ü·ÃÁ¤º¸¸¦ ¼³Á¤ÇÑ´Ù. argp´Â
consolefontdesc {
u_short charcount; /* characters in font (256 or 512) */
u_short charheight; /* scan lines per character (1-32) */
char *chardata; /* font data in expanded form */
};
¸¦ °¡¸®Å²´Ù.
ÇÊ¿äÇÏ´Ù¸é, ȸéÅ©±â´Â ÀûÀýÇÏ°Ô ÀçÁ¶Á¤µÉ °ÍÀÌ°í, SIGWINCH´Â ÀûÀýÇÑ ÇÁ·Î¼¼
½º¸¦ º¸³½´Ù. ÀÌ È£ÃâÀº ¶ÇÇÑ À¯´ÏÄڵ带 ¾µ¸ð ¾ø°Ô ÇÑ´Ù.
- PIO_FONTRESET
-
ÆùÆ®, Å©±â, À¯´ÏÄڵ带 Àç¼³Á¤ÇÑ´Ù.
argp´Â »ç¿ëµÇÁö ¾ÊÁö¸¸, ¸®´ª½ºÀÇ Â÷ÈĹöÀüÀÇ È£È¯À» À§ÇØ
NULL´Â ¼³Á¤µÇ¾î¾ß ÇÑ´Ù.
- GIO_SCRNMAP
-
Ä¿³Î·ÎºÎÅÍ È¸é ¸ÊÇÎÀ» ¾ò´Â´Ù. argp´Â E_TABSZÀÇ ¹üÀ§¸¦ °¡¸®Å²´Ù.
±×°ÍÀº °¢ ¹®ÀÚ µð½ºÇ÷¹¿¡ »ç¿ëµÇ´Â ÆùÆ® À§Ä¡¿Í ÇÔ²² ·ÎµåµÈ´Ù. ÀÌ È£Ãâ
Àº ·ÎµåµÈ ÆùÆ®°¡ 256¹®ÀÚ ÀÌ»óÀÌ¸é ¾µ¸ð¾ø´Â Á¤º¸¸¦ ¹ÝȯÇÒ °ÍÀÌ´Ù.
- PIO_SCRNMAP
-
ÄÜ¼Ö È¸é ½Éº¼ÀÇ ¸Ê¹ÙÀÌÆ®ÀÎ Ä¿³ÎÀÇ ``user definable``À» ·ÎµåÇÑ´Ù.
argp´Â size E_TABSZÀÇ °ø°£¿¡ Æ÷ÀÎÆ®ÇÑ´Ù.
- PIO_UNISCRNMAP
-
À¯´ÏÄÚµåÀÇ ¸Ê¹ÙÀÌÆ®ÀÎ Ä¿³ÎÀÇ ``user definable``À» ·ÎµåÇÑ´Ù. ?
- GIO_UNIMAP
-
Ä¿³Î·ÎºÎÅÍ Unicode-to-font¸¦ ±¸ÇÑ´Ù.
argp´Â
struct unimapdesc {
u_short entry_ct;
struct unipair *entries;
};
where entries points to an array of
struct unipair {
u_short unicode;
u_short fontpos;
};
¸¦ °¡¸®Å²´Ù.
(Since 1.1.92.)
- PIO_UNIMAPCLR
-
hash ¾Ë°í¸®ÁòÀ» ÂüÁ¶ÇØ Å×À̺íÀ» ¼Ò°ÅÇÑ´Ù.
argp´Â
struct unimapinit {
u_short advised_hashsize; /* 0 if no opinion */
u_short advised_hashstep; /* 0 if no opinion */
u_short advised_hashlevel; /* 0 if no opinion */
};
¸¦ °¡¸®Å²´Ù.
(¹öÀü1.1.92ºÎÅÍ.)
- KDGKBMODE
-
ÇöÀç Å°º¸µå ¸ðµå¸¦ ±¸ÇÑ´Ù. FiARGPFp´Â ´ÙÀ½Áß Çϳª·Î ¼³Á¤µÈ longÀ» Æ÷ÀÎÆ®ÇÑ´Ù.
K_RAW 0x00
K_XLATE 0x01
K_MEDIUMRAW 0x02
K_UNICODE 0x03
- KDSKBMODE
-
ÇöÀç Å°º¸µå ¸ðµå¸¦ ¼³Á¤ÇÑ´Ù.
argp´Â À§ÀÇ °ªÁß Çϳª¿Í °°Àº longÀÌ´Ù.
- KDGKBMETA
-
¸ÞŸŰ ¿î¿ë¸ðµå¸¦ ±¸ÇÑ´Ù. argp´Â ´ÙÀ½Áß Çϳª¸¦ ¼³Á¤ÇÏ´Â longÀ» Æ÷ÀÎÆ®ÇÑ´Ù.
K_METABIT 0x03 set high order bit
K_ESCPREFIX 0x04 escape prefix
- KDSKBMETA
-
¸ÞŸŰ ¿î¿ë¸ðµå¸¦ ¼³Á¤ÇÑ´Ù.
argp´Â À§ÀÇ °ªÁß Çϳª¿Í °°Àº longÀÌ´Ù.
- KDGKBSENT
-
ÇÔ¼öÅ°±¸¹®À» ¾ò´Â´Ù.
argp´Â
struct kbsentry {
u_char kb_func;
u_char kb_string[512];
};
¸¦ °¡¸®Å²´Ù.
kb_string´Â kb_funcÇÔ¼öÅ° È°¼ºÄÚµå¿Í ÀÏÄ¡ÇÏ´Â ±¸¹®À» ¼³Á¤ÇÑ´Ù.
- KDSKBSENT
-
ÇÔ¼öÅ° ¹®ÀÚ³»¿ë(entry)À» ¼³Á¤ÇÑ´Ù.
argp´Â ±¸Á¶Ã¼ kbsentry¸¦ °¡¸®Å²´Ù.
- KDGETKEYCODE
-
Ä¿³Î Å°ÄÚµå Å×ÀÌºí ³»¿ëÀ» Àд´Ù.(Å°ÄÚµå·Î Äڵ带 ½ºÄµÇÑ´Ù.
argp´Â
struct kbkeycode { unsigned int scancode, keycode; };
¸¦ °¡¸®Å²´Ù.
keycode´Â ÁÖ¾îÁø scancode¿Í ÀÏÄ¡ÇÏ°Ô ¼³Á¤ÇÑ´Ù.
(89 <= scancode <= 255 only.
For 1 <= scancode <= 88, keycode==scancode.)
(¹öÀü1.1.63ºÎÅÍ.)
- KDSETKEYCODE
-
Ä¿³Î Å°ÄÚµåÅ×ÀÌºí ±âÀç»çÇ×À» ±â·ÏÇÑ´Ù. argp´Â ±¸Á¶Ã¼ Å°Äڵ带 Æ÷ÀÎÆ®ÇÑ´Ù.
(¹öÀü1.1.63 ºÎÅÍ.)
- KDSIGACCEPT
-
È£ÃâÇÑ ÇÁ·Î¼¼½ºµéÀº Àû´çÇÑ Å°Á¶ÇÕÀÌ ÇÁ·¹½º¿¡ ÀÇÇØ »ý¼ºµÉ¶§, ÇÁ·Î¼¼½º¿¡ ÀÇÇØ
½Ã±×³Î argp¸¦ ¹Þ¾ÆµéÀδÙ.
(1 <= argp <= NSIG).
(See spawn_console() in linux/drivers/char/keyboard.c.)
- VT_OPENQRY
-
À¯È¿ÇÑ Ã¹ ÄܼÖÀ» ¹ÝȯÇÑ´Ù.
argp´Â vt(1 <= *argp <= MAX_NR_CONSOLES)ÀÇ ¹øÈ£¸¦ ¼³Á¤ÇÑ Á¤¼ö¸¦ Æ÷ÀÎÆ®ÇÑ´Ù.
- VT_GETMODE
-
È°¼ºÈµÈ vt¸ðµå¸¦ ±¸ÇÑ´Ù. argp´Â
struct vt_mode {
char mode; /* vt mode */
char waitv; /* if set, hang on writes if not active */
short relsig; /* signal to raise on release req */
short acqsig; /* signal to raise on acquisition */
short frsig; /* unused (set to 0) */
};
¸¦ Æ÷ÀÎÆ®ÇÑ´Ù.
mode´Â ´ÙÀ½ °ªÁß Çϳª¸¦ ¼³Á¤ÇÑ´Ù.
VT_AUTO ÀÚµ¿ vt ½ºÀ§Äª
VT_PROCESS ÇÁ·Î¼¼½º Á¦¾î ½ºÀ§Äª
VT_ACKACQ acknowledge switch
- VT_SETMODE
-
È°¼ºÈµÈ vtÀÇ ¸ðµå¸¦ ¼³Á¤ÇÑ´Ù. argp´Â ±¸Á¶Ã¼ vt_mode¸¦ Æ÷ÀÎÆ®ÇÑ´Ù.
- VT_GETSTATE
-
Àü¿ª vt»óÅ Á¤º¸¸¦ ±¸ÇÑ´Ù. argp´Â
struct vt_stat {
ushort v_active; /* active vt */
ushort v_signal; /* signal to send */
ushort v_state; /* vt bitmask */
};
¸¦ Æ÷ÀÎÆ®ÇÑ´Ù.
- VT_RELDISP
-
µð½ºÇ÷¹À̸¦ ¸±¸®ÁîÇÑ´Ù.
- VT_ACTIVATE
-
vt argp¸¦ ÀüȯÇÑ´Ù(1 <= argp <= MAX_NR_CONSOLES).
- VT_WAITACTIVE
-
vt argp°¡ È°¼ºÈµÉ¶§±îÁö ±â´Ù¸°´Ù.
- VT_DISALLOCATE
-
vt argp¿Í ÀÏÄ¡ÇÏ´Â ¸Þ¸ð¸®¸¦ Deallocate the memory associated with vt argp.
(Since 1.1.54.)
- VT_RESIZE
-
ȸéÅ©±âÀÇ Ä¿³ÎÀÌÇØ(kernel's idea)¸¦ ¼³Á¤ÇÑ´Ù.
argp´Â
struct vt_sizes {
ushort v_rows; /* # rows */
ushort v_cols; /* # columns */
ushort v_scrollsize; /* no longer used */
};
·Î Æ÷ÀÎÆ®ÇÑ´Ù.
ÀÌ°ÍÀ¸·Î ºñµð¿À¸ðµå¸¦ ¹Ù²Ü¼ö ¾ø´Ù´Â°ÍÀ» ÁÖÁöÇÑ´Ù.
resizecons(8) ÂüÁ¶ÇÑ´Ù. (¹öÀü1.1.54ºÎÅÍ.)
- VT_RESIZEX
-
´Ù¾çÇÑ È¸é¸Å°³º¯¼öÀÇ Ä¿³ÎÀÌÇØ(kernel's idea)¸¦ ¼³Á¤ÇÑ´Ù.
argp
struct vt_consize {
ushort v_rows; /* ¿(ÁÙ)¹øÈ£ */
ushort v_cols; /* Çà¹øÈ£ */
ushort v_vlin; /* ȸé»óÀÇ Çȼ¿¿ ¹øÈ£ */
ushort v_clin; /* ¹®ÀÚº° Çȼ¿¿ ¹øÈ£ */
ushort v_vcol; /* ȸé»óÀÇ Çȼ¿Çà ¹øÈ£ */
ushort v_ccol; /* ¹®ÀÚº° Çȼ¿Çà ¹øÈ£ */
};
¸¦ Æ÷ÀÎÆ®ÇÑ´Ù.
¸ðµç ¸Å°³º¯¼ö´Â 0À¸·Î ¼³Á¤µÉ·±Áö ¸ð¸¥´Ù. ±×·¯³ª º¹¼öÀÇ ¸Å°³º¯¼ö°¡ ¼³Á¤µÈ´Ù¸é
ÀÏ°üµÇ¾î¾ß¸¸ ÇÑ´Ù. ÀÌ°ÍÀ¸·Î ºñµð¿À¸ðµå¸¦ ¹Ù²Ü¼ö ¾ø´Ù´Â °ÍÀ» ÁÖÁöÇÑ´Ù.
resizecons(8)¸¦ ÂüÁ¶ÇÑ´Ù. (¹öÀü1.3.3ºÎÅÍ.)