操作系统(operating system)、其他应用程序和各种硬件设备(hardware device)都是由不同的人群构建的。因此,默认情况下,操作系统和其他程序无法与硬件设备(hardware device)交互。这就是设备驱动程序(device driver)的用武之地。它是一个软件,充当操作系统(operating system)和硬件设备(hardware device)之间的翻译器。设备驱动程序(device driver)的工作是允许连接到系统的硬件设备顺利运行。(hardware device)打印机驱动程序(printer driver)告诉操作系统如何在页面上打印所选信息。让操作系统翻译音频文件中的位(audio file)成合适的输出,声卡驱动(card driver)是必须的。像这样,连接到系统的每个硬件设备都存在(hardware device)设备驱动程序。(device driver)
什么是设备驱动程序?(What is a Device Driver?)
操作系统不需要知道硬件工作背后的细节。使用设备驱动程序(device driver),它只与那个特定的硬件接口。如果没有安装相应的设备驱动(device driver)程序,则操作系统和硬件之间没有通信链接。(communication link)这样的硬件设备(hardware device)可能无法正常工作。设备驱动程序(device driver)和相应的硬件设备(hardware device communicate)通过该设备所连接的计算机总线(computer bus)进行通信。设备(Device)驱动程序因每个操作系统(operating system)而异,并且取决于硬件。设备驱动程序(device driver)也称为软件驱动程序(software driver)或者只是一个司机。
设备驱动程序如何工作?(How do device drivers work?)
硬件设备(hardware device)想要与系统上的程序通信。您可以将这种情况视为说不同语言的两个实体。因此,需要翻译器。设备驱动程序(device driver)在这里扮演翻译者的角色。该软件为驱动程序提供(driver information)了解释硬件应该执行什么的信息。设备驱动程序(device driver)使用这些信息让驱动程序完成工作。
设备驱动程序(device driver)将software program/the操作系统的指令翻译成硬件设备(hardware device)可以理解(language understood)的语言。为了使系统高效运行,您必须拥有所有必要的设备驱动程序(device driver)。当您打开系统时,操作系统会与设备驱动程序(device driver)和BIOS进行通信,以决定执行各种硬件任务。
如果没有设备驱动程序(device driver),要么系统无法与设备通信,要么软件程序必须知道如何直接与硬件接口(鉴于我们今天拥有的广泛的程序和硬件设备,这会很困难)。不可能构建能够与各种硬件设备直接通信的软件。因此,设备驱动程序(device driver)是游戏规则的改变者。
两者——硬件(– hardware)设备和软件程序都依赖于设备驱动程序(device driver)才能顺利运行。程序(Programs)通常使用通用命令来访问设备。设备驱动程序(device driver)将这些转换为设备可以理解的专用命令。
设备(Device)驱动程序通常作为操作系统的内置组件出现。它们由制造商提供。如果硬件或软件组件(hardware or software component)被替换或更新,这些设备驱动程序将变得无用。
虚拟设备驱动程序(Virtual device drivers)
虚拟设备驱动程序是(device driver)设备(device driver)驱动程序的一个组件,它帮助硬件设备(hardware device)与操作系统或程序建立通信。它们是虚拟设备的驱动程序。虚拟设备驱动程序(device driver)有助于(s help)流畅的数据流。多个应用程序可以访问特定的硬件设备(hardware device)而不会发生冲突。当虚拟设备驱动程序接收到来自(device driver)硬件设备(hardware device)的中断信号时,它会根据设备设置的状态确定下一个操作过程。
虚拟设备驱动程序在哪里使用?(Where is a virtual device driver used?)
当我们使用软件来模拟硬件设备(hardware device)时,会使用虚拟设备驱动程序(device driver)来处理此类(tor un)设备。一个合适的例子是使用VPN。您创建一个虚拟网卡(network card),以便您可以安全地连接到 Internet。这是VPN创建的虚拟网卡(network card)。此卡需要适当的驱动程序,该驱动程序通常由VPN 软件(VPN software)本身安装。
所有设备都需要驱动程序吗?(Do all devices need drivers?)
设备是否(Whether)需要驱动程序取决于您的操作系统(operating system)是否识别硬件设备(hardware device)及其功能。一些操作系统(operating system)未知且需要驱动程序的外围设备是——视频卡(Video card)、USB 设备(USB device)、声卡、扫描仪、打印机、控制器调制解调器(controller modem)、网卡(network card)、读卡器等……(card reader etc…)操作系统通常有一些通用驱动程序,允许常见的硬件设备(hardware device)s 在基本层面上工作。同样(Again),条件是操作系统应该识别设备的功能。一些可以使用通用驱动程序的设备是 -RAM,键盘,鼠标,扬声器,显示器,硬盘驱动器,磁盘驱动器(disk drive),CPU,电源(power supply),操纵杆等......(joystick etc… One)必须意识到操作系统提供的通用驱动程序不会像(operating system)硬件制造商(hardware manufacturer)提供的驱动程序那样频繁更新.
另请阅读:(Also Read:)什么是计算机文件?
如果您没有安装驱动程序会怎样?(What will happen if you have not installed a driver?)
如果您没有为设备安装驱动程序,则该设备可能根本无法运行或只能部分运行。例如,鼠标/键盘等设备无需驱动程序即可工作。但是如果你的鼠标有额外的按钮或者你的键盘有一些特殊的键,那么这些功能将不起作用。如果您是Windows 用户(Windows user),您可以在设备管理器中找到(device manager)驱动程序冲突错误(driver conflict error),如果您缺少驱动程序。通常,制造商会发布驱动程序更新(driver update)以消除驱动程序产生的错误。因此,请始终为您的硬件设备提供最新版本的驱动程序。(date version)
只有在您的系统上安装了相应的设备时,驱动程序才能工作。如果您尝试为不存在的硬件安装驱动程序,则不会发生。例如,当您的系统上没有视频卡时安装(video card)视频卡驱动程序(video card driver)不会使您的系统能够使用视频卡(video card)。您需要同时拥有硬件设备(hardware device)和更新的设备驱动程序(device driver)。
设备驱动程序的类型(Types of device drivers)
目前几乎所有使用的(use today)硬件设备(hardware device)都有一个设备驱动程序(device driver)。这些驱动程序可以大致分为以下两类——用户(– user)设备驱动程序(device driver)和内核设备驱动程序(device driver)
用户设备驱动程序(User device drivers)
这些是用户在使用系统时触发的设备驱动程序。这些是用户已连接到系统的设备,与内核软件(kernel software)有关的设备除外。即插即用设备(plug and play devices)的设备驱动程序被视为用户设备驱动程序。为了减轻系统资源的压力,用户设备驱动程序被写入磁盘。但游戏设备的设备驱动程序通常保存在主内存中。
另请阅读: (Also Read: )什么是 ISO 文件?
内核设备驱动程序(Kernel device drivers)
与操作系统一起作为内置软件提供的通用驱动程序称为内核设备驱动程序。它们作为操作系统的一部分加载到内存中。指向(A pointer)驱动程序的指针存储在内存中,可以在需要时调用。内核设备(Kernel device)驱动程序适用于处理器、主板、BIOS和其他与内核软件(kernel software)相关的设备。
对于内核设备驱动程序(kernel device driver),存在一个常见问题。调用时,内核设备驱动程序(kernel device driver)被加载到RAM中。这不能移动到虚拟内存。如果有多个设备驱动程序同时运行,系统会变慢。为了克服这个问题,每个操作系统都有一个最低系统要求(system requirement)。操作系统将内核设备驱动程序(kernel device driver)所需的资源放在一起。这确保用户不必担心内存需求(memory requirement)。
其他类型的设备驱动程序(Other types of Device Driver)
1. 通用和 OEN 驱动程序(1. Generic and OEN drivers)
如果设备驱动程序(device driver)与操作系统(operating system)一起可用,则称为通用设备驱动程序(device driver)。通用设备驱动程序(device driver)适用于特定设备,无论(device irrespective)其品牌如何。Windows 10 具有通用硬件设备的通用设备驱动程序。(device driver)
有时,硬件设备具有操作系统无法识别的某些功能。设备制造商(device manufacturer)为此类设备提供相应的驱动程序。这些称为OEM 设备(OEM device)驱动程序。为了使此类设备正常运行,必须在安装操作系统后单独安装驱动程序。大约在使用Windows XP(Windows XP)的时候,甚至主板的驱动程序也必须单独安装。今天,大多数现代系统都提供了内置的通用设备驱动程序。
2. 块和字符驱动程序(2. Block and character drivers)
(Device)根据读取和写入数据的方式,设备驱动程序可以分为块驱动程序或字符驱动程序。硬盘、CD ROM(ROMs)、USB驱动(USB)器(Device)等设备是根据使用方式分类的。
当一次读取或写入多个字符时,使用术语块驱动程序。(term block driver)创建一个块,块设备(block device)尝试检索适合该块大小的信息量。硬盘(Hard)和 CD ROM(ROMS)被认为是块设备(block device)驱动程序。
当数据一次写入一个字符时,使用术语字符驱动程序。(term character driver)字符设备(Character device)驱动程序使用串行总线。任何连接到串行端口的设备都有一个字符驱动程序(character driver)。例如,鼠标是连接到串行端口的设备。它使用字符设备驱动程序(character device driver)。
另请阅读:(Also Read:)什么是 Wi-Fi 6 (802.11 ax)?
管理设备驱动程序(Managing device drivers)
Windows 系统(Windows system)上的所有驱动程序都由设备管理器管理(Device Manager)。设备(Device)驱动程序安装后不需要太多关注。有时,他们会进行更新以修复错误或提供新功能的更新。因此,最好不时检查驱动程序更新并安装它们(如果有的话)。为了让您的工作更轻松,有一些程序可以检查和更新您的设备驱动程序。
制造商提供的驱动程序更新始终在其官方网站上免费提供。注意不要为设备驱动程序更新(device driver update)付费!
更新驱动程序很重要,因为很多时候,硬件设备(hardware device)的许多问题都可以追溯到设备驱动程序(device driver)的问题。
概括(Summary)
- 设备驱动程序(device driver)帮助操作系统和其他程序与连接到系统的硬件设备交互
- 现代操作系统为常用外设提供内置设备驱动程序
- 使用其他硬件设备需要安装厂商提供的相应设备驱动
- 使您的设备驱动程序保持最新对于系统的运行至关重要。
- 只有那些功能无法被您的操作系统(operating system)识别的设备才需要外部设备驱动程序(device driver)。
What is a Device Driver? How Does It Work?
The operating system, other apрlication prоgrams and the variоus hardware devices are all built by different groups of people. Therefore, by default, the OS аnd other programѕ cannot interface with the hardware devices. This is where a device driver comes іn. It is a pieсe of software thаt acts as a translator between the operating systems and thе hardware devices. A device driver’ѕ job is to allow smooth functioning of hardware devices attached to the system. A prіnter driver tells the OS how to print the selected іnfоrmation on the page. For thе OS to translate the bits іn an audio fіle into appropriate output, a soυnd card driver is necessary. Like this, device drivers exist for each hardware device that is connected to yоur system.
What is a Device Driver?
The OS need not know the details behind the working of the hardware. Using the device driver, it only interfaces with that particular piece of hardware. If the corresponding device driver is not installed, there is no communication link between the OS and the hardware. Such a hardware device may not work properly. A device driver and the corresponding hardware device communicate through the computer bus to which the device is connected. Device drivers vary for each operating system and they are hardware dependent. A device driver is also known as a software driver or simply a driver.
How do device drivers work?
A hardware device wants to communicate with a program on your system. You can think of this situation as two entities that speak different languages. Thus, there is a need for a translator. The device driver plays the role of the translator here. The software gives the driver information that explains what the hardware should perform. The device driver uses the information to get the driver to do the job.
A device driver translates the instructions of a software program/the OS to a language understood by the hardware device. For the system to run efficiently, you have to have all the necessary device drivers. When you turn on your system, the OS communicates with the device drivers and the BIOS to decide on performing various hardware tasks.
If not for a device driver, either there would be no way for the system to communicate with the devices or software programs would have to know how to directly interface with the hardware (given the wide range of programs and hardware device we have today, this would be difficult). It is not possible to build software with the capability to directly communicate with all kinds of hardware devices. Thus, device drivers are the game-changers.
Both – hardware devices and software programs depend on device drivers for smooth functioning. Programs usually use general commands to access devices. A device driver translates these into specialized commands that can be understood by the device.
Device drivers usually come as built-in components in an OS. They are provided by the manufacturer. If a hardware or software component is replaced or updates, these device drivers are rendered useless.
Virtual device drivers
A virtual device driver is a component of a device driver that helps a hardware device to establish communication with the OS or a program. They are drivers for virtual devices. Virtual device drivers help in the smooth data flow. Multiple applications can access a particular hardware device without conflict. When a virtual device driver receives an interrupt signal from a hardware device, it determines the next course-of-action based on device settings’ status.
Where is a virtual device driver used?
When we use software to emulate a hardware device, a virtual device driver is used tor un such a device. An appropriate example would be using a VPN. You create a virtual network card so that you can securely connect to the internet. This is a virtual network card created by the VPN. An appropriate driver is required for this card which will usually be installed by the VPN software itself.
Do all devices need drivers?
Whether or not a device requires a driver depends on whether your operating system recognizes the hardware device and its features. Some peripherals that are unknown to the operating system and require a driver are – Video card, USB device, sound card, scanner, printer, controller modem, network card, card reader etc… Operating systems usually have some generic drivers that allow common hardware devices to work on a basic level. Again, the condition is that the OS should recognize the features of the device. Some devices that can work with generic drivers are – RAM, keyboard, mouse, speakers, monitor, hard drive, disk drive, CPU, power supply, joystick etc… One must be aware that the generic driver provided by the operating system is not updated as frequently as the drivers provided by the hardware manufacturer.
Also Read: What is a Computer file?
What will happen if you have not installed a driver?
If you have not installed a driver for a device, the device may not function at all or may function only partially. For example, devices such as mouse/keyboard will work without a driver. But if your mouse has extra buttons or your keyboard has some special keys, then those features will not work. If you are a Windows user, you can find the driver conflict error in the device manager, if you have a missing driver. Usually, the manufacturer releases a driver update to erase the errors produced by the driver. Therefore, always have the up to date version of the driver for your hardware devices.
A driver will work only if you have the corresponding device installed on your system. If you try to install a driver for hardware that does not exist, it will not happen. For instance, installing a video card driver when you do not have a video card on your system will not give your system the capability to work with a video card. You need to have both – the hardware device and the updated device driver for it.
Types of device drivers
There exists a device driver for almost every hardware device in use today. These drivers can be broadly classified into the following 2 categories – user device drivers and kernel device drivers
User device drivers
These are device drivers that the user triggers while he/she is using the system. These are for the devices that the user has connected to the system, other than those pertaining to the kernel software. The device drivers for plug and play devices are considered as user device drivers. To lift the pressure off the system resources, user device drivers are written to the disk. But the device drivers for gaming devices are usually kept in main memory.
Also Read: What is an ISO File?
Kernel device drivers
Generic drivers that are available as built-in software along with the OS are called kernel device drivers. They load into the memory as a part of the OS. A pointer to the driver is stored in memory and can be invoked whenever required. Kernel device drivers are for devices such as the processor, the motherboard, BIOS, and other devices pertaining to the kernel software.
With kernel device drivers, there is a common issue. Upon invocation, a kernel device driver is loaded into the RAM. This cannot be moved to virtual memory. If there are several device drivers running simultaneously, the system becomes slow. To overcome this issue, each OS has a minimum system requirement. The operating systems put together the resources that kernel device drivers required. This ensures that users do not have to worry about memory requirement.
Other types of Device Driver
1. Generic and OEN drivers
If the device driver is available along with the operating system, it is called a generic device driver. A generic device driver works for a particular device irrespective of its brand. Windows 10 has generic device drivers for commonly used hardware devices.
Sometimes, the hardware devices have certain features that an OS cannot recognize. The device manufacturer provides the corresponding driver for such devices. These are called OEM device drivers. For such devices to function properly, the drivers have to be installed separately after installing the OS. Around the time when Windows XP was in use, even drivers for the motherboard had to be installed separately. Today, most of the modern systems provide built-in generic device drivers.
2. Block and character drivers
Device drivers can be classified as block drivers or character drivers based on how data is read and written. Devices such as hard disks, CD ROMs and USB drives are classified based on the way they are used.
The term block driver is used when more than one character is read or written at a time. A block is created, and the block device tries to retrieve the amount of information that suits the size of the block. Hard disks and CD ROMS are considered to block device drivers.
The term character driver is used when data is written one character at a time. Character device drivers make use of serial buses. Any device that is connected to the serial port has a character driver. For example, a mouse is a device connected to a serial port. It makes use of a character device driver.
Also Read: What is Wi-Fi 6 (802.11 ax)?
Managing device drivers
All the drivers on your Windows system are managed by the Device Manager. Device drivers do not need much attention after installation. Occasionally, they have updates to fix a bug or an update that provides a new feature. Therefore, it is a good practice to check for driver updates and install them (if any) once in a while. To make your job easy, there are some programs that will check and update your device drivers.
The driver updates provided by the manufacturer are always available for free on their official website. Take care to not pay for a device driver update!
Updating your drivers are important because, often time, many issues with a hardware device can be traced back to an issue with the device driver.
Summary
- A device driver helps the OS and other programs interface with the hardware devices connected to the system
- Modern operating systems provide built-in device drivers for commonly used peripherals
- To use other hardware devices, you need to install the corresponding device drivers provided by the manufacturer
- Keeping your device drivers up to date is crucial to the functioning of the system.
- An external device driver is only required for those devices whose features are not recognized by your operating system.