The Linux Programming Interface 14 File Systems 文件系统

本文详细介绍了Linux编程接口中的文件系统,包括设备特殊文件、设备驱动、/dev目录、设备ID、磁盘和分区、i-nodes、虚拟文件系统(VFS)、mount命令及其应用。通过理解这些概念,可以更好地掌握Linux系统中文件系统的工作原理和管理方式。
摘要由CSDN通过智能技术生成

The Linux Programming Interface

File Systems

(01)主要内容

The majority of this chapter is concern with file systems, which are organized collections of files and directories.

(02)设备解释,有必要的驱动,统一的接口,供上层调用。

A device special file corresponds to a device on the system. Within the kernel, each device type has a corresponding device driver, which handles all I/O requests for the device.

A device driver is an unit of kernel code that implements a set of operations that (normally) correspond to input and output actions on an associated piece of hardware.

The API provides a consistent interface, hiding the differences in operation of individual devices, allows for universality of I/O.

(03) /dev目录

Device files appear within the file system, just like other files, usually under the /dev directory.

The superuser can create a device file using the mknod command.

 (04)设备ID

Each device file has a major ID number and a minor ID number.

The major ID identifies the general class of device, and is used by the kernel to look up the appropriate driver for this type of device.

(05)磁盘和分区

A hard disk drive is a mechanical device consisting of one or more platters that rotate at high speed.

Each disk is divided into one or more partitions.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值