⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 1079-1081.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 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="1077-1078.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="1082-1084.html">Next</A></CENTER></P>







<A NAME="PAGENUM-1079"><P>Page 1079</P></A>







<P>

The action of the following ioctls depends on the first byte in the

struct pointed to by argp, referred to here as the

subcode. These are legal only for the superuser or the owner of the current

tty.

</P>



<TABLE>



<TR><TD>

TIOCLINUX, subcode=0

</TD><TD>

Dump the screen. Disappeared in 1.1.92. (With kernel 1.1.92 or later, read from

/dev/vcsN or /dev/vcsaN instead.)

</TD></TR><TR><TD>

TIOCLINUX, subcode=1

</TD><TD>

Get task information. Disappeared in 1.1.92.

</TD></TR><TR><TD>

TIOCLINUX, subcode=2

</TD><TD>

Set selection. argp points to a

struct{fchar subcode; short xs, ys, xe, ye; short sel_mode; }

</TD></TR><TR><TD>

</TD><TD>

xs and ys are the starting column and row.

xe and ye are the ending column and row. (Upper-left corner is

row=column=1.) sel_mode is 0 for

character-by-character selection, 1 for word-by-word selection, or

2 for line-by-line selection. The indicated screen characters are highlighted and saved in the static array sel buffer in

devices/char/console.c.

</TD></TR><TR><TD>

TIOCLINUX, subcode=3

</TD><TD>

Paste selection. The characters in the selection buffer are written to

fd.

</TD></TR><TR><TD>

TIOCLINUX, subcode=4

</TD><TD>

Unblank the screen.

</TD></TR><TR><TD>

TIOCLINUX, subcode=5

</TD><TD>

Sets contents of a 256-bit look up table defining characters in a &quot;word&quot;, for

word-by-word selection. (Since 1.1.32.)

</TD></TR><TR><TD>

TIOCLINUX, subcode=6

</TD><TD>

argp points to a char that is set to the value of the kernel variable shift state.

(Since 1.1.32.)

</TD></TR><TR><TD>

TIOCLINUX, subcode=7

</TD><TD>

argp points to a char that is set to the value of the kernel variable report

mouse. (Since 1.1.33.)

</TD></TR><TR><TD>

TIOCLINUX, subcode=8

</TD><TD>

Dump screen width and height, cursor position, and all the character-attribute

pairs. (Kernels 1.1.67 through 1.1.91 only. With kernel 1.1.92 or later, read from

/dev/vcsa* instead.)

</TD></TR><TR><TD>

TIOCLINUX, subcode=9

</TD><TD>

Restore screen width and height, cursor position, and all the

character-attribute pairs. (Kernels 1.1.67 through 1.1.91 only. With kernel 1.1.92 or later, write to

/dev/vcsa* instead.)

</TD></TR><TR><TD>

TIOCLINUX, subcode=10

</TD><TD>

Handles the power saving feature of the new generation of monitors. VESA

screen blanking mode is set to argp[1], which governs what screen blanking does:

</TD></TR><TR><TD>

</TD><TD>

<!-- CODE //-->

<PRE>

0     Screen blanking is disabled.

1     The current video adapter register settings are saved, then

      the controller is programmed to turn off the vertical

      synchronization pulses. This puts the monitor into standby mode. If your monitor

      has an Off_Mode timer, then it will eventually power down by itself.

2     The current settings are saved, then both the vertical and

      horizontal synchronization pulses are turned off. This puts the monitor into

      off mode. If your monitor has no Off_Mode timer, or if you want

      your monitor to power down immediately when the blank timer times

      out, then you choose this option. (Caution: Powering down

      frequently will damage the monitor.) (Since 1.1.76.)

</PRE>

<!-- END CODE //-->

</TD></TR></TABLE>





<P><B>

Return Values

</B><P>



<P>-1 for error, and errno is set.

</P>



<P><B>

Errors

</B></P>



<P>errno may take on these values:</P>



<TABLE>



<TR><TD>

EBADF

</TD><TD>

File descriptor is invalid.

</TD></TR><TR><TD>

ENOTTY

</TD><TD>

File descriptor is not associated with a character special device, or the

specified request does not apply to it.

</TD></TR></TABLE>



<A NAME="PAGENUM-1080"><P>Page 1080</P></A>



<TABLE>



<TR><TD>

EINVAL

</TD><TD>

File descriptor or argp is invalid.

</TD></TR><TR><TD>

EPERM

</TD><TD>

Permission violation.

</TD></TR></TABLE>

<BR><BR>

<P>



<CENTER>

<TABLE BGCOLOR="#FFFF99">

<TR><TD><B>

WARNING

</B></TD></TR>

<TR><TD>

<BLOCKQUOTE>

Do not regard this man page as documentation of the Linux console ioctls. This is provided for the curious only, as

an alternative to reading the source. Ioctls are undocumented Linux internals, liable to be changed without warning.

(And indeed, this page more or less describes the situation as of kernel version 1.1.94; there are many minor and

not-so-minor differences with earlier versions.)

<BR><BR>

Very often, ioctls are introduced for communication between the kernel and one particular well-known program

(fdisk, hdparm, setserial, tunelp, loadkeys,

selection, setfont, and so on), and their behavior will be changed when required

by this particular program.

<BR><BR>

Programs using these ioctls will not be portable to other versions of UNIX, will not work on older versions of Linux,

ad will not work on future versions of Linux.

<BR>

Use POSIX functions.

</BLOCKQUOTE></TD></TR>

</TABLE></CENTER>

</P>

<P><B>

See Also

</B></P>



<!-- CODE //-->

<PRE>

kbd_mode(1), loadkeys(1), dumpkeys(1), mknod(1), setleds(1), setmetamode(1), ioperm(2), termios(2), execve(2), fcntl(2),

charsets(4), console(4), console_codes(4), mt(4), sd(4), tty(4), ttys(4), vcs(4), vcsa(4), mapscrn(8), setfont(8), resizecons(8),

/usr/include/linux/kd.h,          /usr/include/linux/vt.h.

</PRE>

<!-- END CODE //-->



<P>Linux, 18 September 1995</P>





<H3><A NAME="ch04_ 6">

fd

</A></H3>



<P>fd&#151;Floppy disk device

</P>





<P><B>

CONFIGURATION

</B></P>



<P>Floppy drives are block devices with major number 2. Typically, they are owned by

root.floppy (that is, user root, group floppy) and have either mode

0660 (access checking via group membership) or mode

0666 (everybody has access). The minor numbers encode the device type, drive number, and controller number. For each device type (that is, combination of

density and track count), there is a base minor number. To this base number, add the drive's number on its controller and

128 if the drive is on the secondary controller. In the following device tables,

n represents the drive number.

</P>

<P>



<CENTER>

<TABLE BGCOLOR="#FFFF99">

<TR><TD><B>

WARNING

</B></TD></TR>

<TR><TD>

<BLOCKQUOTE>

If you use formats with more tracks than supported by your drive, you may cause it mechanical damage. Trying once

if more tracks than the usual 40/80 are supported should not damage it, but no warranty is given for that. Don't

create device entries for those formats to prevent their usage if you are not sure.

</BLOCKQUOTE></TD></TR>

</TABLE></CENTER>

</P>

<A NAME="PAGENUM-1081"><P>Page 1081</P></A>







<P>Drive-independent device files that automatically detect the media format and capacity are

</P>



<TABLE>



<TR><TD>

Name

</TD><TD>

Base minor #

</TD></TR><TR><TD>

fdn

</TD><TD>

0

</TD></TR></TABLE>





<P>5.25-inch double density device files:

</P>



<TABLE>



<TR><TD>

Name

</TD><TD>

Capac.

</TD><TD>

Cyl.

</TD><TD>

Sect.

</TD><TD>

Heads

</TD><TD>

Base minor #

</TD></TR><TR><TD>

fdnd360

</TD><TD>

360K

</TD><TD>

40

</TD><TD>

9

</TD><TD>

2

</TD><TD>

4

</TD></TR></TABLE>





<P>5.25-inch high density device files:

</P>



<TABLE>



<TR><TD>

Name

</TD><TD>

Capac.

</TD><TD>

Cyl.

</TD><TD>

Sect.

</TD><TD>

Heads

</TD><TD>

Base minor #

</TD></TR><TR><TD>

fdnh360

</TD><TD>

360K

</TD><TD>

40

</TD><TD>

9

</TD><TD>

2

</TD><TD>

20

</TD></TR><TR><TD>

fdnh410

</TD><TD>

410K

</TD><TD>

41

</TD><TD>

10

</TD><TD>

2

</TD><TD>

48

</TD></TR><TR><TD>

fdnh420

</TD><TD>

420K

</TD><TD>

42

</TD><TD>

10

</TD><TD>

2

</TD><TD>

64

</TD></TR><TR><TD>

fdnh720

</TD><TD>

720K

</TD><TD>

80

</TD><TD>

9

</TD><TD>

2

</TD><TD>

24

</TD></TR><TR><TD>

fdnh880

</TD><TD>

880K

</TD><TD>

80

</TD><TD>

11

</TD><TD>

2

</TD><TD>

80

</TD></TR><TR><TD>

fdnh1200

</TD><TD>

1200K

</TD><TD>

80

</TD><TD>

15

</TD><TD>

2

</TD><TD>

8

</TD></TR><TR><TD>

fdnh1440

</TD><TD>

1440K

</TD><TD>

80

</TD><TD>

18

</TD><TD>

2

</TD><TD>

40

</TD></TR><TR><TD>

fdnh1476

</TD><TD>

1476K

</TD><TD>

82

</TD><TD>

18

</TD><TD>

2

</TD><TD>

56

</TD></TR><TR><TD>

fdnh1494

</TD><TD>

1494K

</TD><TD>

83

</TD><TD>

18

</TD><TD>

2

</TD><TD>

72

</TD></TR><TR><TD>

fdnh1600

</TD><TD>

1600K

</TD><TD>

80

</TD><TD>

20

</TD><TD>

2

</TD><TD>

92

</TD></TR></TABLE>





<P>3.5-inch double density device files:

</P>



<TABLE>



<TR><TD>

Name

</TD><TD>

Capac.

</TD><TD>

Cyl.

</TD><TD>

Sect.

</TD><TD>

Heads

</TD><TD>

Base minor #

</TD></TR><TR><TD>

fdnD360

</TD><TD>

360K

</TD><TD>

80

</TD><TD>

9

</TD><TD>

1

</TD><TD>

12

</TD></TR><TR><TD>

fdnD720

</TD><TD>

720K

</TD><TD>

80

</TD><TD>

9

</TD><TD>

2

</TD><TD>

16

</TD></TR><TR><TD>

fdnD800

</TD><TD>

800K

</TD><TD>

80

</TD><TD>

10

</TD><TD>

2

</TD><TD>

120

</TD></TR><TR><TD>

fdnD1040

</TD><TD>

1040K

</TD><TD>

80

</TD><TD>

13

</TD><TD>

2

</TD><TD>

84

</TD></TR><TR><TD>

fdnD1120

</TD><TD>

1120K

</TD><TD>

80

</TD><TD>

14

</TD><TD>

2

</TD><TD>

88

</TD></TR></TABLE>





<P>3.5-inch high density device files:

</P>



<TABLE>



<TR><TD>

Name

</TD><TD>

Capac.

</TD><TD>

Cyl.

</TD><TD>

Sect.

</TD><TD>

Heads

</TD><TD>

Base minor #

</TD></TR><TR><TD>

fdnH360

</TD><TD>

360K

</TD><TD>

40

</TD><TD>

9

</TD><TD>

2

</TD><TD>

12

</TD></TR><TR><TD>

fdnH720

</TD><TD>

720K

</TD><TD>

80

</TD><TD>

9

</TD><TD>

2

</TD><TD>

16

</TD></TR><TR><TD>

fdnH820

</TD><TD>

820K

</TD><TD>

82

</TD><TD>

10

</TD><TD>

2

</TD><TD>

52

</TD></TR><TR><TD>

fdnH830

</TD><TD>

830K

</TD><TD>

83

</TD><TD>

10

</TD><TD>

2

</TD><TD>

68

</TD></TR><TR><TD>

fdnH1440

</TD><TD>

1440K

</TD><TD>

80

</TD><TD>

18

</TD><TD>

2

</TD><TD>

28

</TD></TR><TR><TD>

fdnH1600

</TD><TD>

1600K

</TD><TD>

80

</TD><TD>

20

</TD><TD>

2

</TD><TD>

124

</TD></TR><TR><TD>

fdnH1680

</TD><TD>

1680K

</TD><TD>

80

</TD><TD>

21

</TD><TD>

2

</TD><TD>

44

</TD></TR><TR><TD>

fdnH1722

</TD><TD>

1722K

</TD><TD>

82

</TD><TD>

21

</TD><TD>

2

</TD><TD>

60

</TD></TR><TR><TD>

fdnH1743

</TD><TD>

1743K

</TD><TD>

83

</TD><TD>

21

</TD><TD>

2

</TD><TD>

76

</TD></TR><TR><TD>

fdnH1760

</TD><TD>

1760K

</TD><TD>

80

</TD><TD>

22

</TD><TD>

2

</TD><TD>

96

</TD></TR><TR><TD>

fdnH1840

</TD><TD>

1840K

</TD><TD>

80

</TD><TD>

23

</TD><TD>

2

</TD><TD>

116

</TD></TR><TR><TD>

fdnH1920

</TD><TD>

1920K

</TD><TD>

80

</TD><TD>

24

</TD><TD>

2

</TD><TD>

100

</TD></TR></TABLE>







<P><CENTER>

<a href="1077-1078.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="1082-1084.html">Next</A></CENTER></P>







</td>
</tr>
</table>

<!-- begin footer information -->







</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -