One, add the service portIn the file apache\conf\httpd.conf, remove the previous # number and restart#LoadModule rewrite_module modules/mod_rewrite.so #Include conf/extra/httpd-vhosts.confSecond, in the file apache\conf\extra\httpd-vhosts.conf file, modify the corresponding configuration inside:Namevirtualhost *: the the>ServerAdmin [email protected] documentroot"D:/wamp/www/lee"ServerName www.lee.com Serveralias www.dummy-host.localhost errorlog"Logs/dummy-host.localhost-error.log"Customlog"Log
Differences between development character drivers in linux2.4 and 2.6-Linux general technology-Linux programming and kernel information. For more information, see the following. The definition of struct file_operation has changed:
In 2.4, it is generally read: xxread
2.6 to. read = xxread
The registration method for character device drivers is different:
2.6 kernel Registration Method
(1) sta
Differences between Linux 2.4 and kernel drivers-general Linux technology-Linux programming and kernel information. For more information, see the following. To thoroughly prevent incorrect operations on the kernel module being used, the Linux 2.4 kernel has been improved compared with the kernel in terms of loading and exporting the kernel module, this avoids system crashes (for example, forcible deletion of modules ). At the same time, when the drive
ArcGIS Runtime for WPF development in map set property useaccelerateddisplay= "True", Error:Sample:LocalMapError:Failed to create accelerated Display. Please check the display hardware and drivers meet the minimum requirements. Stack Trace: at ESRI. ArcGIS.Client.NativeMap. ctor (Inativemapowner map, single dpi) at ESRI. ArcGIS.Client.DrawingSurface. ctor (Single dpi, inativemapowner owner) at ESRI. ArcGIS.Client.Map.OnApplyTemplate () in System.Windo
The following trees in the Registry are of particle interest to driver writers (whereHKLMRepresentsHKEY_LOCAL_MACHINE):
The HKLM \ System \ CurrentControlSet \ Services tree
The HKLM \ System \ CurrentControlSet \ Control tree
The HKLM \ SYSTEM \ CurrentControlSet \ Enum tree
The HKLM \ System \ CurrentControlSet \ hardwareprofiles tree
Drivers must Access Plug and Play (PNP) keys in the registry using system routines such
has 6 devices mounted. According to the actual capacity of the Sound Card, more types of devices can be mounted to the driver, in the include/sound/core. h defines the following device types:
# Definesndrc v_dev_toplevel (_ force snd_device_type_t) 0)
Generally, we are more concerned with PCM and control devices.
3. Driver
Code File structure
In the linux2.6 code tree, the structure of the Alsa code file is as follows:
Sound/Core/OSS/Seq/Ioctl32/Include/
Use oledbconnection. getoledbschematable (oledbschemaguid. columns, new object [] {null, schemaname, tablename, null}) when obtaining the schema information of a column, the returned datatable column is "data_type ", is to use a number to identify the data type of the column. This number may be of the decimal or int32 type:
If "provider = msdaora.1;", the type of the column "data_type" is int32;If "provider = oraoledb. Oracle;", the type of the column "data_type" is decimal.
After understandin
1. Compiling and installing the driverIn Linux systems, drivers are usually encoded using the kernel module's program structure, so compiling and installing a driver is essentially compiling and installing a kernel module.Put the file memdev.c makefile into the virtual machine, make get the. ko fileCP. KO RootfsStart the Development BoardInsmod *.ko2. Create a Device fileWith character device files, the application can use the appropriate character de
When the Debian 7 system is installed, the network device will be detected, this time will be prompted to say there is a missing firmware, whether to load from removable media, the installation of the choice of No. Continue to install the system. Installed after the discovery of the wireless network firmware is missing, unable to link to the wireless network, this time only remembered to install the system when the hint of the missing firmware name, so in the installation must note any questions
This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/z2007b/archive/2011/05/19/6432997.aspx
//************************************** ***************
Linux Kernel Lecture Hall (1) cornerstone Driver Model for device drivers (6)
In the previous section, we roughly analyzed how driver_register works. Some details are not in place, but remember one sentence. The first thing we need to build is the first impression
sndrv_dev_jack (_ force snd_device_type_t) 0x1009)
# Define sndrv_dev_lowlevel (_ force snd_device_type_t) 0x2000)
Generally, we are more concerned with PCM and control devices.
3. Driver
Code File structure
In the linux2.6 code tree, the structure of the Alsa code file is as follows:
Sound/Core/OSS/Seq/Ioctl32/Include/Drivers/I2C/Synth/Emux/PCI/(CARDS)/Isa/(CARDS)/ARM/PPC/ISCSI/USB/PCMCIA/(CARDS)/OSS/SOC/Codecs
Core this directory con
Block device drivers for flash memory devices The first version of Windows CE was used solely on platforms with battery-backed Ram storage with a simple file system to manage the storage. however, Windows CE versions 2.10 and later are often used on embedded systems that require persistent storage and cannot depend on battery-backed Ram storage. as a solution Windows CE can use flash memory, which is the industry standard for nonvolatile storage
Brief Introduction to interrupt handling for Linux Device Drivers
The first step related to interrupt handling in Linux device drivers is to apply for and release IRQ APIs: request_irq () and free_irq ().
The prototype of request_irq () is:
Int request_irq (unsigned int IRQ, void (* Handler) (int irq, void * dev_id, struct pt_regs * regs), unsigned long irqflags, const char * devname, void * dev_id );
IRQ
Because of work needs, now we need to learn the Linux Device Driver. Starting from the simplest character device driver, we need to record our learning experience and stick to our own ideas and conclusions.
The makefile I wrote for the first hello World character driver is as follows:
# Kvers = $ (shell uname-R)
Ifneq ($ (kernelrelease ),)
OBJ-M + = hello_world.o
Else
Kerdir =/usr/src/linux-headers-3.2.0-33-generic
#/Lib/modules/3.2.0-33-generic/build
#/Usr/src/linux-headers-3.2.0-33-generic
C
Precautions for developing Device Drivers in Visual C ++
To put it simply, the process of using the makefile project to create a device driver is to call the DDK command in Visual C ++. The execution sequence of the command window is the same as that of the DDK Command Prompt window, the executable files of the driver are also stored in the same directory. The difference between them is a command prompt window in the DDK, and a command is called in th
;}/* The distory function */Int cleanup_module (){Printk ("I will shut down myself in kernerl mod/n )";Retutn 0;}
This example is complete. We also write a makefile example to make it suitable for our applications with heavy program. Here is the content of the makfile.
# A makefile for a moduleCC = gccMODCFLAGS: =-Wall _ DMODULE-D_KERNEL _-DLinuxHello. o hello. c/usr/inculde? Linux/version. hCC $ (MODCFLAGS) 0c hello. cEcho the module is complie completely
Run the make com
Linux driver module parameters-Linux Device DriversModule Parameters
In many cases, we expect to control our drive behavior through parameters. For example, because of different systems, to ensure good portability of our drivers, sometimes we want to control our driven behavior by passing parameters. In this way, drivers may have different behavior controls in different systems.
To meet this requirement, t
The kernel is driven by a device.ProgramInteraction with I/O devices.
The device driver is included in the kernel and consists of data structures and functions that control one or more devices, these devices include hard disk, keyboard, mouse, monitor, network interface, and devices connected to the SCSI bus. Through a specific interface, each driver interacts with the rest of the kernel (including other drivers.
This method has the following adva
I bought an Asus Notebook, a43ei267sd, and the camera has never been used. I spent some time studying it tonight.
To download the camera driver from the official Asus website, you need to first view a number in "graphic devices" in "Device Manager", but no graphical device in my Device Manager.
Driving life with drivers cannot detect exceptions.
Downloading Asus drivers does not work either.
I inserte
startup files that haven't deleted the virus from fixing the sys Driver file we deleted. after restarting to safe mode, check whether the deleted sys Virus File is successfully deleted and then delete the registry key.
Method 1: manually delete: Click Start-run-Enter "Regedit" to open the Registry Editor, click Edit-search Virus File Name (with extension, some items without an extension cannot be deleted directly. It doesn't matter if they are left behind.) Delete the loading key in the left
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.