📄 1077-1078.html
字号:
<HTML>
<HEAD>
<TITLE>Linux Complete Command Reference:Special Files:EarthWeb Inc.-</TITLE>
</HEAD>
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>
-->
<!-- ISBN=0672311046 //-->
<!-- TITLE=Linux Complete Command Reference//-->
<!-- AUTHOR=Red Hat//-->
<!-- PUBLISHER=Macmillan Computer Publishing//-->
<!-- IMPRINT=Sams//-->
<!-- CHAPTER=04 //-->
<!-- PAGES=1063-1102 //-->
<!-- UNASSIGNED1 //-->
<!-- UNASSIGNED2 //-->
<P><CENTER>
<a href="1075-1076.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="1079-1081.html">Next</A></CENTER></P>
<A NAME="PAGENUM-1077"><P>Page 1077</P></A>
<TABLE>
<TR><TD>
PIO_UNIMAPCLR
</TD><TD>
Clear table, possibly advise hash algorithm.
argp points to a<BR>
<!-- CODE //-->
<PRE>
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 */
};
(Since 1.1.92.)
</PRE>
<!-- END CODE //-->
</TD></TR><TR><TD>
KDGKBMODE
</TD><TD>
Gets current keyboard mode. argp points to a
long, which is set to one of these:<BR><BR>
<!-- CODE SNIP //-->
<PRE>
K_RAW 0x00
K_XLATE 0x01
K_MEDIUMRAW 0x02
K_UNICODE 0x03
</PRE>
<!-- END CODE SNIP //-->
</TD></TR><TR><TD>
KDSKBMODE
</TD><TD>
Sets current keyboard mode. argp is a long equal to one of the above values.
</TD></TR><TR><TD>
KDGKBMETA
</TD><TD>
Gets meta key handling mode. argp points to a long which is set to one of these:<BR><BR>
<!-- CODE SNIP //-->
<PRE>
K_METABIT 0x03 Set high order bit
K_ESCPREFIX 0x04 Escape prefix
</PRE>
<!-- END CODE SNIP //-->
</TD></TR><TR><TD>
KDSKBMETA
</TD><TD>
Sets meta key handling mode. argp is a long equal to one of the preceding values.
</TD></TR><TR><TD>
KDGKBENT
</TD><TD>
Gets one entry in key translation table (keycode to action code).
argp points to a<BR>
<!-- CODE SNIP //-->
<PRE>
struct kbentry {
u_char kb_table;
u_char kb_index;
u_short kb_value;
};
</PRE>
<!-- END CODE SNIP //-->
</TD></TR><TR><TD>
</TD><TD>
with the first two members filled in:
kb_table selects the key table (0 <= kb_table
<MAX_NR_KEYMAPS), and kb_index is the keycode
(0 <= kb index <NR_KEYS). kb_value is set to the corresponding action code, or
K_HOLE if there is no such key, or K_NOSUCHMAP if
kb_table is invalid.
</TD></TR><TR><TD>
KDSKBENT
</TD><TD>
Sets one entry in translation table.
argp points to a struct kbentry.
</TD></TR><TR><TD>
KDGKBSENT
</TD><TD>
Gets one function key string. argp points to a<BR><BR>
<!-- CODE SNIP //-->
<PRE>
struct kbsentry {
u_char kb_func;
u_char kb_string[512];
;
</PRE>
<!-- END CODE SNIP //-->
</TD></TR><TR><TD>
</TD><TD>
kb_string is set to the (NULL-terminated) string corresponding to the
kb_functh function key action code.
</TD></TR><TR><TD>
KDSKBSENT
</TD><TD>
Sets one function key string entry.
argp points to a struct kbsentry.
</TD></TR><TR><TD>
KDGKBDIACR
</TD><TD>
Read kernel accent table. argp points to a<BR><BR>
<!-- CODE SNIP //-->
<PRE>
struct kbdiacrs {
unsigned int kb_cnt;
struct kbdiacr kbdiacr[256];
};
</PRE>
<!-- END CODE SNIP //-->
</TD></TR><TR><TD>
</TD><TD>
where kb_cnt is the number of entries in the array, each of which is a
struct kbdiacr { u_char diacr, base, result ;};
</TD></TR><TR><TD>
KDGETKEYCODE
</TD><TD>
Read kernel keycode table entry (scan code to keycode).
argp points to a
struct kbkeycode { unsigned int scancode, keycode; };<BR><BR>
keycode is set to correspond to the given
scancode.(89<=scancode <= 255 only.
For 1 <= scancode <= 88,
keycode==scancode.) (Since 1.1.63.)
</TD></TR><TR><TD>
KDSETKEYCODE
</TD><TD>
Write kernel keycode table entry.
argp points to struct kbkeycode. (Since 1.1.63.)
</TD></TR></TABLE>
<A NAME="PAGENUM-1078"><P>Page 1078</P></A>
<TABLE>
<TR><TD>
KDSIGACCEPT
</TD><TD>
The calling process indicates its willingness to accept the signal
argp when it is generated by pressing an appropriate key combination.
(1 <= argp <=NSIG).
(See spawn_console() in
linux/drivers/char/keyboard.c.)
</TD></TR><TR><TD>
VT_OPENQRY
</TD><TD>
Returns the first available (nonopened) console.
argp points to an int that is set to the number of the
vt (1 <= *argp <=MAX_NR_CONSOLES).
</TD></TR><TR><TD>
VT_GETMODE
</TD><TD>
Get mode of active vt. argp points to a<BR><BR>
<!-- CODE //-->
<PRE>
struct vt mode {
char mode;/*vtmode*/
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) */
};
</PRE>
<!-- END CODE //-->
</TD></TR><TR><TD>
</TD><TD>
mode is set to one of these values:<BR><BR>
<!-- CODE SNIP //-->
<PRE>
VT_AUTO Auto vt switching
VT_PROCESS Process controls switching
VT_ACKACQ Acknowledge switch
</PRE>
<!-- END CODE SNIP //-->
</TD></TR><TR><TD>
VT_SETMODE
</TD><TD>
Set mode of active vt. argp points to a
struct vt_mode.
</TD></TR><TR><TD>
VT_GETSTATE
</TD><TD>
Get global vt state info. argp points to a
</TD></TR><TR><TD>
</TD><TD>
<!-- CODE SNIP //-->
<PRE>
struct vt_stat {
ushort v_active; /* active vt */
ushort v_signal;/*signalto send*/
ushort v_state;/*vtbitmask*/
};
</PRE>
<!-- END CODE SNIP //-->
</TD></TR><TR><TD>
</TD><TD>
For each vt in use, the corresponding bit in the
v state member is set. (Kernels 1.0 through 1.1.92.)
</TD></TR><TR><TD>
VT_RELDISP
</TD><TD>
Release a display.
</TD></TR><TR><TD>
VT_ACTIVATE
</TD><TD>
Switch to vt argp (1 <= argp
<=MAX_NR_CONSOLES).
</TD></TR><TR><TD>
VT_WAITACTIVE
</TD><TD>
Wait until vt argp has been activated.
</TD></TR><TR><TD>
VT_DISALLOCATE
</TD><TD>
Deallocate the memory associated with
vt argp. (Since 1.1.54.)
</TD></TR><TR><TD>
VT_RESIZE
</TD><TD>
Set the kernel's idea of screensize.
argp points to a
</TD></TR><TR><TD>
</TD><TD>
<!-- CODE SNIP //-->
<PRE>
struct vt_sizes {
ushort v_rows;/*#rows*/
ushort v_cols;/*#columns */
ushort v_scrollsize; /* no longer used */
};
</PRE>
<!-- END CODE SNIP //-->
</TD></TR><TR><TD>
</TD><TD>
Note that this does not change the video mode. See
resizecons(8). (Since 1.1.54.)
</TD></TR><TR><TD>
VT_RESIZEX
</TD><TD>
Set the kernel's idea of various screen parameters.
argp points to a
</TD></TR><TR><TD>
</TD><TD>
struct vt_consize {
</TD></TR><TR><TD>
</TD><TD>
ushort v_rows; /* number of rows */
</TD></TR><TR><TD>
</TD><TD>
ushort v_cols; /* number of columns */
</TD></TR><TR><TD>
</TD><TD>
ushort v_vlin; /* number of pixel rows on screen */
</TD></TR><TR><TD>
</TD><TD>
ushort v_clin; /* number of pixel rows per character */
</TD></TR><TR><TD>
</TD><TD>
ushort v_vcol; /* number of pixel columns on screen */
</TD></TR><TR><TD>
</TD><TD>
ushort v_ccol; /* number of pixel columns per character */
</TD></TR><TR><TD>
};
</TD><TD>
Any parameter may be set to zero, indicating no change, but if multiple
parameters are set, they must be self-consistent. Note that this does not change the video
mode. See resizecons(8). (Since 1.3.3.)
</TD></TR></TABLE>
<P><CENTER>
<a href="1075-1076.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="1079-1081.html">Next</A></CENTER></P>
</td>
</tr>
</table>
<!-- begin footer information -->
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -