In computer science, a device driver is a computer program that operates or controls a particular type of device that is attached to a computer or automaton.[1] A driver provides a software interface to hardware devices, enabling operating systems and other computer programs to access hardware functions without needing to know precise details about the hardware being used.
A driver communicates with the device through the computer bus or communications subsystem to which the hardware connects. When a calling program invokes a routine in the driver, the driver issues commands to the device (drives it). Once the device sends data back to the driver, the driver may invoke routines in the original calling program.
Drivers are hardware dependent and operating-system-specific. They usually provide the interrupt handling required for any necessary asynchronous time-dependent hardware interface.[2]
Purpose
The main purpose of device drivers is to provide abstraction by acting as a translator between a hardware device and the applications or operating systems that use it.[1] Programmers can write higher-level application code independently of whatever specific hardware the end-user is using.
For example, a high-level application for interacting with a serial port may simply have two functions for "send data" and "receive data". At a lower level, a device driver implementing these functions would communicate to the particular serial port controller installed on a user's computer. The commands needed to control a 16550 UART are much different from the commands needed to control an FTDI serial port converter, but each hardware-specific device driver abstracts these details into the same (or similar) software interface.
Development
Writing a device driver requires an in-depth understanding of how the hardware and the software works for a given platform function. Because drivers require low-level access to hardware functions in order to operate, drivers typically operate in a highly privileged environment and can cause system operational issues if something goes wrong. In contrast, most user-level software on modern operating systems can be stopped without greatly affecting the rest of the system. Even drivers executing in user mode can crash a system if the device is erroneously programmed. These factors make it more difficult and dangerous to diagnose problems.[3]
The task of writing drivers thus usually falls to software engineers or computer engineers who work for hardware-development companies. This is because they have better information than most outsiders about the design of their hardware. Moreover, it was traditionally considered in the hardware manufacturer's interest to guarantee that their clients can use their hardware in an optimum way. Typically, the Logical Device Driver (LDD) is written by the operating system vendor, while the Physical Device Driver (PDD) is implemented by the device vendor. However, in recent years, non-vendors have written numerous device drivers for proprietary devices, mainly for use with free and open sourceoperating systems. In such cases, it is important that the hardware manufacturer provide information on how the device communicates. Although this information can instead be learned by reverse engineering, this is much more difficult with hardware than it is with software.
Microsoft has attempted to reduce system instability due to poorly written device drivers by creating a new framework for driver development, called Windows Driver Frameworks (WDF). This includes User-Mode Driver Framework (UMDF) that encourages development of certain types of drivers—primarily those that implement a message-based protocol for communicating with their devices—as user-mode drivers. If such drivers malfunction, they do not cause system instability. The Kernel-Mode Driver Framework (KMDF) model continues to allow development of kernel-mode device drivers, but attempts to provide standard implementations of functions that are known to cause problems, including cancellation of I/O operations, power management, and plug and play device support.
Apple has an open-source framework for developing drivers on macOS, called I/O Kit.
In Linux environments, programmers can build device drivers as parts of the kernel, separately as loadable modules, or as user-mode drivers (for certain types of devices where kernel interfaces exist, such as for USB devices). Makedev includes a list of the devices in Linux, including ttyS (terminal), lp (parallel port), hd (disk), loop, and sound (these include mixer, sequencer, dsp, and audio).[4]
Microsoft Windows.sys files and Linux .ko files can contain loadable device drivers. The advantage of loadable device drivers is that they can be loaded only when necessary and then unloaded, thus saving kernel memory.
Privilege levels
Depending on the operating system, device drivers may be permitted to run at various different privilege levels. The choice of which level of privilege the drivers are in is largely decided by the type of kernel an operating system uses. An operating system which uses a monolithic kernel, such as the Linux kernel, will typically run device drivers with the same privilege as all other kernel objects. By contrast, a system designed around microkernel, such as Minix, will place drivers as processes independent from the kernel but that use it for essential input-output functionalities and to pass messages between user programs and each other.[5]
On Windows NT, a system with a hybrid kernel, it is common for device drivers to run in either kernel-mode or user-mode.[6]
The most common mechanism for segregating memory into various privilege levels is via protection rings. On many systems, such as those with x86 and ARM processors, switching between rings imposes a performance penalty, a factor that operating system developers and embedded software engineers consider when creating drivers for devices which are preferred to be run with low latency, such as network interface cards. The primary benefit of running a driver in user mode is improved stability, since a poorly written user-mode device driver cannot crash the system by overwriting kernel memory.[7]
Applications
Because of the diversity of modern[update] hardware and operating systems, drivers operate in many different environments.[8] Drivers may interface with:
Implementing an interface for non-driver software (e.g. TWAIN)
Implementing a language, sometimes quite high-level (e.g. PostScript)
So choosing and installing the correct device drivers for given hardware is often a key component of computer system configuration.[10]
Virtual device drivers
Virtual device drivers represent a particular variant of device drivers. They are used to emulate a hardware device, particularly in virtualization environments, for example when a DOS program is run on a Microsoft Windows computer or when a guest operating system is run on, for example, a Xen host. Instead of enabling the guest operating system to dialog with hardware, virtual device drivers take the opposite role and emulates a piece of hardware, so that the guest operating system and its drivers running inside a virtual machine can have the illusion of accessing real hardware. Attempts by the guest operating system to access the hardware are routed to the virtual device driver in the host operating system as e.g., function calls. The virtual device driver can also send simulated processor-level events like interrupts into the virtual machine.
Virtual devices may also operate in a non-virtualized environment. For example, a virtual network adapter is used with a virtual private network, while a virtual disk device is used with iSCSI. A good example for virtual device drivers can be Daemon Tools.
There are several variants of virtual device drivers, such as VxDs, VLMs, and VDDs.
Dynax Driver Framework (dxd) – C++ open source cross-platform driver framework for KMDF and IOKit[16]
Identifiers
A device on the PCI bus or USB is identified by two IDs which consist of 4 hexadecimal numbers each. The vendor ID identifies the vendor of the device. The device ID identifies a specific device from that manufacturer/vendor.
A PCI device has often an ID pair for the main chip of the device, and also a subsystem ID pair which identifies the vendor, which may be different from the chip manufacturer.
Security
Devices often have a large number of diverse and customized device drivers running in their operating system (OS) kernel and often contain various bugs and vulnerabilities, making them a target for exploits.[17]Bring Your Own Vulnerable Driver (BYOVD) uses signed, old drivers that contain flaws that allow hackers to insert malicious code into the kernel.[18]
There is a lack of effective kernel vulnerability detection tools, especially for closed-source OSes such as Microsoft Windows[19] where the source code of the device drivers is mostly not public (open source)[20] and the drivers often also have many privileges.[21][22][23][24]
Such vulnerabilities also exist in drivers in laptops,[25] drivers for WiFi and bluetooth,[26][27] gaming/graphics drivers,[28] and drivers in printers.[29]
A group of security researchers considers the lack of isolation as one of the main factors undermining kernel security,[30] and published a isolation framework to protect operating system kernels, primarily the monolithicLinux kernel which, according to them, gets ~80,000 commits/year to its drivers.[31][32]
The mechanisms or policies provided by the kernel can be classified according to several criteria, including: static (enforced at compile time) or dynamic (enforced at run time); pre-emptive or post-detection; according to the protection principles they satisfy (e.g., Denning[34][35]); whether they are hardware supported or language based; whether they are more an open mechanism or a binding policy; and many more.
^Tanenbaum, Andrew; Woodhull, Albert (2006). Operating Systems, Design and Implementation (3rd. ed.). Upper Saddle River, NJ: Pearson Pretence Hall. p. 256. ISBN0-13-142938-8.
^Yosifovich, Pavel; Ionescu, Alex; Russinovich, Mark; Solomon, David (2017). Windows Internals, Part 1 (Seventh ed.). Redmond, Washington: Microsoft Press. ISBN978-0-7356-8418-8.
^"CCISS". SourceForge. 2010. Archived from the original on 2010-08-21. Retrieved 2010-08-11. Drivers for the HP (previously Compaq) Smart Array controllers which provide hardware RAID capability.
^Huang, Yongzhe; Narayanan, Vikram; Detweiler, David; Huang, Kaiming; Tan, Gang; Jaeger, Trent; Burtsev, Anton (2022). "KSplit: Automating Device Driver Isolation"(PDF). Archived(PDF) from the original on 15 September 2022. Retrieved 15 September 2022.
Armenian singer (born 1986) Iveta MukuchyanԻվետա ՄուկուչյանMukuchyan in June 2019Born (1986-10-14) 14 October 1986 (age 37)Yerevan, Armenian SSR, USSRYears active2009–presentHeight185 cm (6 ft 1 in)Relatives Marianna Mukuchyan (sister) Musical careerGenres Pop R&B Folk Instrument(s)VocalsLabelsSister JackMukuchyan Musical artistWebsiteivetamukuchyan.com Iveta Mukuchyan (Armenian: Իվետա Մուկուչյան, Armenian pronunciation: [ivɛˈtɑ…
James Bradley Föddmars 1693Sherborne, StorbritannienDöd13 juli 1762[1] eller 13 mars 1762[2]ChalfordMedborgare iKungariket StorbritannienUtbildad vidBalliol CollegeOxfords universitet[3] SysselsättningAstronom[4], universitetslärareBefattningAstronomer Royal (1742–1762)[5]ArbetsgivareOxfords universitetUtmärkelserCopleymedaljen (1748)[6]Fellow of the Royal SocietyRedigera Wikidata James Bradley, född den 3 mars 1692 i Sherborne, Gloucestershire, död den 13 j…
Yamaha TMAXYamaha XP500 TMAX generasi pertamaProdusenYamaha Motor CompanyJuga disebutXP500Produksi2001–2011KelasSkuter maxiMesin499 cm3 (30,5 cu in) Berpendingin cairan, 4-langkah, DOHC, 2 SilinderDiameter / tak66 mm × 73 mm (2,6 in × 2,9 in)Rasio kompresi10.0:1 untuk model tahun 2001-2003,11.0:1 untuk model tahun 2004-2011Kecepatan tertinggi100 mph (160 km/h)[1]Daya294 kW (394 hp) pada 7,000 rpm,[2]326 kW …
Ten artykuł dotyczy polityka. Zobacz też: inne osoby o tym nazwisku. Henryk Bednarski Data i miejsce urodzenia 22 czerwca 1934 Małkinia Górna Data śmierci 30 października 2023 Minister edukacji narodowej Okres od 24 października 1987 do 14 października 1988 Przynależność polityczna Polska Zjednoczona Partia Robotnicza Poprzednik Joanna Michałowska-Gumowska[1] Następca Jacek Fisiak Odznaczenia Multimedia w Wikimedia Commons Henryk Jan Bednarski (ur. 22 czerwca 1934 w Małkini G
Berikut daftar Kepala Daerah dan Wakil Kepala Daerah di 10 kabupaten/kota di Bengkulu adalah: Kabupaten/Kota Foto Bupati/Wali Kota Bupati/Wali Kota Foto Wakil Bupati/Wali Kota Wakil Bupati/Wali Kota Mulai Menjabat Selesai Menjabat(Direncanakan) Ref KabupatenBengkulu SelatanDaftar Bupati/Wakil Bupati Gusnan Mulyadi Rifai Tajudin 26 Februari 2021 26 Februari 2024 [1] KabupatenBengkulu TengahDaftar Bupati/Wakil Bupati Heriyandi Roni(Penjabat) 25 Mei 2023 Menunggu Pemilihan umum Bupati Bengk…
У Вікіпедії є статті про інші значення цього терміна: Ізюм (значення). Родзинки Родзи́нки[1][2] (заст. укр. озюм, ст.-укр. изюмъ)[3] — сушений виноград. Родзинки виробляють у багатьох країнах світу, зокрема у США, Австралії, Чилі, Аргентині, Мексиці, Греції, Туреччин…
Влад Кірікеш Влад Кірікеш Особисті дані Повне ім'я Влад Юліан Кірікеш Народження 14 листопада 1989(1989-11-14) (34 роки) Бакеу, Румунія Зріст 184 см Вага 78 кг Громадянство Румунія Позиція захисник Інформація про клуб Поточний клуб «Кремонезе» Номер 21 Юнацькі клуби 2004–200720…
Soviet literary critic (1902–1990) This article relies largely or entirely on a single source. Relevant discussion may be found on the talk page. Please help improve this article by introducing citations to additional sources.Find sources: Lidiya Ginzburg – news · newspapers · books · scholar · JSTOR (October 2006) You can help expand this article with text translated from the corresponding article in Russian. (May 2023) Click [show] for important …
This is the talk page for discussing WikiProject Politics and anything related to its purposes and tasks. Put new text under old text. Click here to start a new topic. New to Wikipedia? Welcome! Learn to edit; get help. Assume good faith Be polite and avoid personal attacks Be welcoming to newcomers Seek dispute resolution if needed ShortcutsWT:PLTWT:POLITICS Archives: Index, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33…
Railway line in Israel At the eastern end of Yarkon Railway, a freight train is turning towards Rosh HaAyin SouthAt its western end, Yarkon Railway branches off the Coastal railway near Tel Aviv University The Yarkon Railway (Hebrew: מסילת הירקון, romanized: Mesilat HaYarkon) is a double-track railroad following the course of the Yarkon River in the central area of Israel. It is about 15 km long, stretching from the Coastal Railway to the Eastern Railway. History The initial…
Artikel ini tidak memiliki referensi atau sumber tepercaya sehingga isinya tidak bisa dipastikan. Tolong bantu perbaiki artikel ini dengan menambahkan referensi yang layak. Tulisan tanpa sumber dapat dipertanyakan dan dihapus sewaktu-waktu.Cari sumber: IPhone 12 Pro – berita · surat kabar · buku · cendekiawan · JSTOR iPhone 12 ProiPhone 12 Pro MaxiPhone 12 Pro in GoldMerekApple Inc.PembuatFoxconn (on contract)Seri14thJaringanGSM, CDMA, 3G, EVDO, HSPA+, 4G…
British politician (born 1967) The Right HonourableVicky FordMPOfficial portrait, 2022Minister of State for DevelopmentIn office6 September 2022 – 25 October 2022Prime MinisterLiz TrussPreceded byAnne-Marie Trevelyan (As Secretary of State for International Development)[a]Succeeded byAndrew MitchellParliamentary Under-Secretary of State for Africa, Latin America and the Caribbean[b]In office16 September 2021 – 6 September 2022Prime MinisterBoris JohnsonPrece…
Berchtesgaden National Parkнім. Berchtesgaden[1] Назва на честь Берхтесгаден 47°34′12″ пн. ш. 12°57′36″ сх. д. / 47.57000000002777540° пн. ш. 12.96000000002777774° сх. д. / 47.57000000002777540; 12.96000000002777774Координати: 47°34′12″ пн. ш. 12°57′36″ сх. д. / 47.57000000002777540° пн. ш. 12.960000…
1998 studio album by Air This article is about the Air album. For the band of the same name, see Moon Safari (band). Moon SafariStudio album by AirReleased16 January 1998 (1998-01-16)RecordedApril–June 1997Studio Around the Golf (Paris) Gang (Paris) Abbey Road (London)[a] Genre Space pop[1][2] electronica[3] lounge[4] chill-out[5] downtempo[6] dream pop[7] psychedelia[8] Length43:35Label Source Virgin Pr…
Para penerima Nobel meraih sebuah medali emas bersama dengan sebuah diploma dan (pada 2012) 8 juta SEK (setara US$1.2 juta, €0.93 juta). Para penerima Nobel 2012 Alvin E. Roth, Brian Kobilka, Robert J. Lefkowitz, David J. Wineland, dan Serge Haroche pada acara tersebut Penghargaan Nobel (bahasa Swedia: Nobelpriset, bahasa Norwegia: Nobelprisen) adalah penghargaan yang diberikan secara tahunan oleh Akademi Ilmu Pengetahuan Kerajaan Swedia, Akademi Swedia, Institut Karolinska, dan Komite…
2011 single by Kreayshawn Not to be confused with Gucci. This article is about the single. For the concert tour, see Gucci Gucci Tour. For the Lil Durk song, see Just Cause Y'all Waited 2. Gucci GucciSingle by Kreayshawnfrom the album Somethin' 'Bout Kreay ReleasedJune 14, 2011 (2011-06-14)Recorded2011GenrePop-rapLength3:07LabelColumbiaSongwriter(s) Anthony David Negrete Michael Kenneth Weiner Natassia Zolot Producer(s) DJ Two Stacks Adeptus Kreayshawn singles chronology Bumpin' B…
Cet article est une ébauche concernant la musique classique. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations des projets correspondants. Quatuor à cordes no 23en fa majeur K. 590 Quatuor prussien Mozart en 1789Portrait exécuté à la pointe d'argent par Doris Stock Genre Quatuor à cordes Nb. de mouvements 4 Musique Wolfgang Amadeus Mozart Effectif Quatuor à cordes Durée approximative 26 minutes Dates de composition juin 1790 à…
Literary fraternity at Yale University, US Calliopean Society19th-century Calliopean Society emblemFounded1819, revived 1950Yale UniversityTypeLiterary and debatingScopeLocalPatron Greek divinityCalliopeChapters1Alternative nameFraternity of Phi Epsilon MuHeadquartersNew Haven, Connecticut United States The Calliopean Society, also known as the Fraternity of Phi Epsilon Mu, is a literary and debating society at Yale College founded in 1819, disbanded in 1853, and revived in 1950.[1] Its …
Czech entrepreneur (born 1964) Luděk SekyraSekyra in 2017Born (1964-02-08) February 8, 1964 (age 59)Český Krumlov, CzechoslovakiaAlma materFaculty of Law, Charles UniversityOccupationEntrepreneurPolitical partyKDU-ČSLSpouseVěra Sekyrová TerezijskáChildren2 Luděk Sekyra (born 8 February 1964) is a Czech entrepreneur and philanthropist. He is the owner of the Sekyra Group, which has operated on the Czech real estate market since 1996 and focuses on the residential and commercial …