30.12.2013 Views

T-Kernel Specification (1.B0.02)

T-Kernel Specification (1.B0.02)

T-Kernel Specification (1.B0.02)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

226 CHAPTER 5. T-KERNEL/SM<br />

5.3 Device Management Functions<br />

5.3.1 Basic Concepts<br />

Applications/Subsystems<br />

↓ Application interface (Extended SVC)<br />

↑<br />

Device Management Functions T-<strong>Kernel</strong>/SM<br />

↓<br />

↓ Devie driver interface<br />

Interface Layer<br />

↑<br />

Logical Layer<br />

Device Driver<br />

Physical Layer<br />

↓<br />

Figure 5.1: Device Management Functions<br />

(1) Device Name (UB* type)<br />

A device name is a string of up to 8 characters consisting of the following elements.<br />

#define L_DEVNM 8 /* Device name length */<br />

Type Name indicating the device type<br />

Characters a to z and A to Z can be used.<br />

Unit One letter indicating a physical device<br />

Each unit is assigned a letter from a to z in order starting from a.<br />

Subunit One to three digits indicating a logical device<br />

Each subunit is assigned a number from 0 to 254 in order starting from 0.<br />

Device names take the format type + unit + subunit. Some devices may not have a unit or subunit, in<br />

which case the corresponding field is omitted.<br />

A name consisting of type + unit is called a physical device name. A name consisting of type + unit +<br />

subunit may be called a logical device name to distinguish it from a physical device name. If there is<br />

no subunit, the physical device name and logical device name are identical. The term “device name”<br />

by itself means the logical device name.<br />

A subunit generally refers to a partition on a hard disk, but can be used to mean other logical devices<br />

as well.<br />

Examples:<br />

hda<br />

hda0<br />

fda<br />

rsa<br />

kbpd<br />

Hard disk (entire disk)<br />

Hard disk (1st partition)<br />

Floppy disk<br />

Serial port<br />

Keyboard/pointing device<br />

Copyright c○ 2002, 2003 by T-Engine Forum<br />

T-<strong>Kernel</strong> <strong>1.B0.02</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!