|
章八
磁盘与BIOS的功能和中断处理三
引言
本章我们将讨论的重要磁盘BIOS的功能和作用等重大用途所给予我们的自由,扰乱我们的节目,并与丙办理,易法与短.这些职能的骨干数据恢复和磁盘故障编程.这些都是使C语言功能"高层次汇编语言".
biosdisk and _bios_disk Functions
这两项功能是最重要的功能,为我所用的数据恢复和磁盘故障编程. 我们会使用这些职能大部分时间.
两者皆BIOS的磁盘驱动器服务,并已确定有biosdiskbios.h运转水平低于原始档案部门.如果连这些功能都用有点缺乏照料,它可破除对档案内容和通讯录硬盘.双方并_bios_diskbiosdisk功能,使用中断0x13发行业务,直接向磁盘的BIOS._bios_disk的功能是在计划申报方式如下:
unsigned _bios_disk(unsigned cmd, struct diskinfo_t *dinfo);
声明为磁盘和BIOS的功能如下:
int biosdisk(int cmd, int drive, int head, int track,
int sector, int nsects, void *buffer);
这些参数的含义已经描述如下表:
Parameter参数 |
Function功能 |
What It
Is or what it
does请问这是什么,或者什么 |
cmd二氧化锰 |
Both无论 |
Indicates the
operation to perform such as read, write, verify
etc.(See the description of cmd, given
next)显示操作表演等书,写核查等(见说明二氧化锰,由于下次) |
dinfodinfo |
_bios_disk_bios_disk |
Points to a
diskinfo_t structure that contains the
remaining指着一个结构包含剩余diskinfo_t
Parameters
required by the operation.(see the description of
diskinfo_t structure, given
next)参数要求的运行.(见说明diskinfo_t结构,给未来) |
drive驱动 |
biosdiskbiosdisk |
Specifies which
disk drive is to be used(0 for a:, 1for b: and 0x80 for
first physical hard disk, 0x81 for second and so
on.)而磁盘驱动器是被指定用于(一0:,皮下注射二:第一、0x80物理硬盘、0x81第二等等). |
head目
track轨道
sector业 |
biosdiskbiosdisk
|
These specify
the starting sector location from which
the这些部门指定的地点出发,从其中
Operation is to
be started.可开始运作. |
nsects珍 |
biosdiskbiosdisk |
Number of
sectors to read, write, verify etc.一些部门阅读,写字,等等核实 |
buffer缓冲区 |
biosdiskbiosdisk |
Memory address
where data is to be read or
written那里是数据存储器地址或予以书面 |
|
|