Questions tagged [drivers]

THIS TAG IS FOR WRITING DRIVERS. Questions about finding/using drivers can be asked on https://superuser.com Drivers allow higher-level programs to communicate with the specific hardware device and operating system that they were programmed for.

In computing, a device driver or software driver is a computer program allowing higher-level computer programs to interact with a hardware device. A driver typically 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. 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.

This tag should only be used for questions related to driver development, as questions about finding or installing drivers are off-topic for StackOverflow. Assistance with identifying, locating, and installing drivers may be obtained at SuperUser, Unix & Linux Exchange or in the case of server-related and enterprise-level hardware, ServerFault.

As Microsoft states, Without drivers, the hardware you connect to your computer—for example, a video card or a webcam—will not work properly.

In most cases, drivers come with Windows or can be obtained through Windows Update; other times, the driver is found on the disc that came with the hardware or device you want to use, or is on the manufacturer's website.

People also often cite drivers as a common cause of operating system crashes. The reason a poorly written driver can crash an operating system is if it overwrites memory that is shared in the operating system's address space. This is less common in micro-kernel operating systems than [monolithic kernel] operating systems, where all OS services run along with the main kernel thread, thus also residing in the same memory area.

646 questions
5
votes
1 answer

How to make resource dll to describe device fonts?

The target driver I'm building is not a native driver but a minidriver working with Microsoft Universal Pinter Driver According to DDK: Descriptions of these items [fonts in my case] are placed in a resource DLL, as described in the Platform…
RomanM
  • 6,363
  • 9
  • 33
  • 41
5
votes
1 answer

Linux Kernel - Clock Framework - What is role of clk_prepare/unprepare?

I am reading up the following article about the new Clock Framework present in the Linux Kernel.. http://lwn.net/Articles/489668/ What is unclear to me, is the usage of the new API's clk_prepare/unprepare, which complement the clk_enable/disable…
TheLoneJoker
  • 1,589
  • 1
  • 23
  • 36
5
votes
0 answers

How to write device driver programs in c language

I want to code drivers in C in linux os, though I think its very tough. Can I get some hints as to how to start or books to follow? Drivers can be from my USB port to graphics card!! I know as to where I can search for books, I would like to know as…
me_neo
  • 95
  • 9
5
votes
2 answers

How to preserve an in memory datastructure to later use it in a Unit test

In my code, I am occasionally passed various byte arrays and such. Also, they may be managed objects. I would like to preserve those memory structures so that I can write test cases against the concrete examples. My standard approach is to hit the…
Tormod
  • 4,551
  • 2
  • 28
  • 50
5
votes
2 answers

How do I setup Oracle ODBC drivers on RHEL 6/Linux

I need to setup Oracle ODBC drivers on RHEL 6 to connect to an Oracle data source residing on a remote Windows machine. I have taken the following steps: [1] Installed oracle-instanceclient-basic [2] Set environment variables: ORACLE_HOME and LD…
Kapil Vyas
  • 607
  • 2
  • 8
  • 22
5
votes
1 answer

How to add the PCI ID to a serial port driver?

linux-y3pi:~ # lspci | grep -i ethernet 01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 01) linux-y3pi:~ # lspci -n | grep 01:00.0 01:00.0 0200: 10ec:8136 (rev 01) From here:…
Aquarius_Girl
  • 21,790
  • 65
  • 230
  • 411
4
votes
3 answers

Using LINQ to Entity Framework with DB2

Is there an IBM Driver so we can use Linq to Entity framework to connect to DB2 and generate the DB2 entities on the desinger edmx file? Any links would be greatly appreciated
chugh97
  • 9,602
  • 25
  • 89
  • 136
4
votes
2 answers

how to parse windows inf files for python?

please help me. example inf file : ;============================================================================= ; ; Copyright (c) Intel Corporation (2002). ; ; INTEL MAKES NO WARRANTY OF ANY KIND REGARDING THE CODE. THIS CODE IS ; LICENSED ON AN…
john misoskian
  • 574
  • 1
  • 12
  • 32
4
votes
6 answers

How do I identify device specific interrupts on x86?

In the Intel software developers manual it says that interrupt vectors 32-255 are usually user defined for external IO devices. In my systems programming class I must develop a simple device driver. My question is how can I define a specific…
Mr. Shickadance
  • 5,283
  • 9
  • 45
  • 61
4
votes
6 answers

What percentage of Windows boxes have OpenGL support

I've been thinking about starting a new graphics project and I want to use Java. Java has wrappers for all of the relevant GL functionality but I wonder how many people, including casual users, actually have decent GL drivers installed. By decent,…
Dave
  • 7,589
  • 12
  • 36
  • 42
4
votes
1 answer

python database drivers timeout

This is a generic question about all python database drivers but if you an answer for a specific driver (pyodbc, psycopg2, pymysql, mysqldb, etc.) would be useful anyway. Once I have a connection and cursor, is there a way (an API) to check the…
Massimo
  • 1,653
  • 12
  • 11
4
votes
2 answers

Can't compile qc-usb driver?

Ubuntu 11.04 64-bit [Tried on SuSE 32-bit, and got same error], I have gcc, and can compile normal C programs.. and the linux headers in /usr/src/linux-headers-2.6* I downlaoded this driver: http://qce-ga.sourceforge.net/#download downloaded,…
Matt
  • 2,790
  • 6
  • 24
  • 34
4
votes
2 answers

Windows - ways to communicate with device driver

As far as I can see - the only entrypoint to communicate with DeviceDriver - is using CreateFile. Q1 - Is there any other way to communicate with device driver other than using CreateFile Q2 - When using pseudo file access approach - what are common…
zvoice
  • 183
  • 3
  • 9
4
votes
2 answers

How to get OpenGL 4 on Linux for Intel HD 4000

I am using Linux Mint 18.2 and I have an Intel HD Graphics 4000 from an Intel Core i5-3230M CPU. I need to program in OpenGL 4. Intel says that this GPU supports OpenGL 4. However when i run glxinfo | grep "version" I get the following: server glx…
Roulbacha
  • 457
  • 7
  • 20
4
votes
1 answer

Virtual printer in windows, where to start?

I want to write a program (or a driver) on windows that can: - Display on printer list when user open print dialog - Display an optional dialog for config printing - Print to a file In short, my need is very close to pdf printers which can print any…
tiboo
  • 8,213
  • 6
  • 33
  • 43