Answer the question
In order to leave comments, you need to log in
What is a HAL and how is it different from a driver?
What is a HAL and how is it different from a driver?
I read in a book / Wikipedia and did not understand
Answer the question
In order to leave comments, you need to log in
On personal computers, HAL can essentially be thought of as a motherboard driver.
If I understand correctly, then:
The driver provides an interface for accessing the hardware.
HAL provides a unified interface for accessing hardware.
In the case of a driver, you may also need a program from the manufacturer to work.
In the case of HAL, any program will do, since the HAL commands are the same for this type of device.
HAL is an intermediate layer between user applications and device drivers provided by the OS. Thanks to HAL, applications do not need, for example, to read a file, specify the block / sector / head number for reading from disk, but just specify the file name.
HAL provides a standard hardware interface for user applications, as well as interfaces for drivers.
Those. access to hardware in modern operating systems occurs as follows:
User application <-> HAL <-> device driver <-> device
Usually, there is an abstraction layer before HAL, or even more than one.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question