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
0
votes
1 answer

Special Drivers for accessing parallel port in Windows xp/7

I just read in a few articles that we need some kind of special drivers for parallel port to access it through C as in win xp and 7 we cannot access them directly. Can someone help me do this?
user2126750
  • 59
  • 1
  • 4
0
votes
1 answer

Programmatically Add Fake Hardware in Windows

I have created a fake usb flash driver driver in Windows that will fake Windows into thinking that a new hardware device is attached. I have also found the APIs that allow me to enumerate the hardware attached (so I know which device is my fake…
Jason
  • 13,563
  • 15
  • 74
  • 125
0
votes
1 answer

linux i2c driver for pandaboard

I am trying to write linux i2c drivers for omap4460 panda board. Interfacing Hmc5883l sennsor to omap through i2c interface. Do I need to write only the client diver or both client and bus driver. I am using linux ubuntu on panda board. Kidly give…
Anamr
  • 1
  • 1
0
votes
1 answer

Recovering Windows and/or system restore after faulty driver install

I installed HP sound driver yesterday and it BSOD-ed my windows and crashed it. System repair didn't help. system restore is corrupted, and startup recovery just says ""patch is preventing windows from starting". when I try to boot, it loads up to…
srgb
  • 4,783
  • 6
  • 29
  • 45
0
votes
3 answers

How to use a function and pass its variables to the user app defined in the linux driver LM70?

Hi i would like to know how is it possible to call/run the following function from user space. static ssize_t lm70_sense_temp(struct device *dev, struct device_attribute *attr, char *buf) { //some code . . status = sprintf(buf, "%d\n",…
user1877992
  • 67
  • 1
  • 5
0
votes
1 answer

Is it possible to determine usb protocol from an installed driver?

Just as the question states, the goal is to reverse engineer the protocol used by a device. Let's say you have a webcam, an Arduino and an Arduino USB Host shield. You want to talk to that webcam, from which you don't know the protocol. Can it be…
Gaias
  • 45
  • 5
0
votes
2 answers

Use of count variable in register_chrdev_region

As of I understand, the signature of the register_chrdev_region is described as follows extern int register_chrdev_region(dev_t firstmajor,unsigned int count,const char*dev_name); //firstmajor: The major number requested for reservation of the…
Vivek Maran
  • 2,623
  • 5
  • 38
  • 52
0
votes
1 answer

kinect as a webcam

I need to get my kinect device on to the list of cameras in skype. I tried this one, http://www.e2esoft.cn/kinect/, but it doesn't work. Maybe it's because I use OpenNI version 2.x. I installed it as a PrimeSense device, as I'm not allowed to use…
Apple Kuzma
  • 19
  • 1
  • 2
0
votes
1 answer

Merge module upgrade problems

I have an MSI/WIX installer project that consists a merge module, which installs drivers for some custom USB hardware. New versions of the installer are produced regularly, but the merge module has not changed for some time. However, when an…
Tom Davies
  • 2,386
  • 3
  • 27
  • 44
0
votes
1 answer

How to build a USB driver and data extractor (magnetic card reader)?

I have this magnetic card reader (generic). The manual is in Chinese, and I don't understand it. I have two Linux Machines, and if you plug it via USB, it powers on, and if you pass a card (with a text editor open), you get a code/string somewhat…
Jmlevick
  • 6,504
  • 9
  • 29
  • 35
0
votes
1 answer

"Invalid module format" when inserting a custom Linux kernel module

I'm trying to write a Linux kernel module, but I'm stuck just writing some stub code. I've compiled this code in Ubuntu: #include int init_module(void){ printk("<1> hellp"); return 0;} void cleanup_module(void){ printk("<1>…
pythoniku
  • 3,532
  • 6
  • 23
  • 30
0
votes
1 answer

Java-Database (oracle) odbc driver mismatch

I am trying to create a database application with java as front end and oracle as the back end. I have a 64-bit win7 system with 32-bit oracle 10g (10.2) installed. I created a DSN from/via C:\Windows\SysWOW64\odbcad32.exe because "control…
RC-user
  • 51
  • 2
  • 10
0
votes
1 answer

porting windows 7 drivers to winXP

Is it possible to manually edit the driver to make it function on windows XP? I guess there are many differences, but it must be possible for simple drivers, kind of porting the locations / buses they use?
Smellymoo
  • 97
  • 7
0
votes
1 answer

Communicationg with NDIS on WinXP/7

There is device connected to PC via 1Gbit Ethernet. WinXP/7 I want to capture data in the following way: PC sends command to devices (initiate data acquisition) Device is sending data to PC User application waits for acquisition Driver saves data…
zulunation
  • 297
  • 1
  • 5
  • 13