This the third edition of the Writing Device Drivers articles. The first article helped to simply get you acquainted with device drivers and a simple framework for developing a device driver for NT. The second tutorial attempted to show to use IOCTLs and display what the memory layout of Windows NT is. In this edition, we will go into the idea of contexts and pools. The driver we write today will also be a little more interesting as it will allow two user mode applications to communicate with each other in a simple manner. We will call this the “poor man’s pipes” implementation.
标签: the articles Drivers edition
上传时间: 2014-01-16
上传用户:ommshaggar
How the K-mean Cluster work Step 1. Begin with a decision the value of k = number of clusters Step 2. Put any initial partition that classifies the data into k clusters. You may assign the training samples randomly, or systematically as the following: Take the first k training sample as single-element clusters Assign each of the remaining (N-k) training sample to the cluster with the nearest centroid. After each assignment, recomputed the centroid of the gaining cluster. Step 3 . Take each sample in sequence and compute its distance from the centroid of each of the clusters. If a sample is not currently in the cluster with the closest centroid, switch this sample to that cluster and update the centroid of the cluster gaining the new sample and the cluster losing the sample. Step 4 . Repeat step 3 until convergence is achieved, that is until a pass through the training sample causes no new assignments.
标签: the decision clusters Cluster
上传时间: 2013-12-21
上传用户:gxmm
A Numerical Photonics library written in C++. The library includes beam propagation method, coupled mode method, Bragg Gating Analysis, transfer matrix method, and vectorial Fourier Decomposition method. Very useful in simulating integrated Photonic devices
标签: library propagation Numerical Photonics
上传时间: 2013-12-22
上传用户:wendy15
VHDL实现循环码编码,设计了三个单元。switch是一个开关,shifter是移位寄存器,encoder是主体。
上传时间: 2016-02-14
上传用户:cainaifa
The line echo canceller (LEC) is designed to provide the maximum attainable transparent voice quality for de-echoing of a PSTN or POTS connection in voice-over-LAN systems with internal delays, or on a codec end of a telecom switch,基于TI 54X/55X平台
标签: transparent attainable canceller designed
上传时间: 2014-01-17
上传用户:qoovoop
The preferred technique places the new YAMON in the opposite Flash bank (the Db1200 boards have two Flash banks), and then changes switch S11 to swap the Flash banks in the memory map to allow the other Flash bank to become the boot bank. This technique is the safest and preferred method since it preserves the existing YAMON
标签: the preferred technique opposite
上传时间: 2016-02-27
上传用户:thuyenvinh
学生成绩管理系统,有简单输出输入界面,c语言程序,switch语句,简单的画图函数应用!
标签: 管理系统
上传时间: 2014-01-05
上传用户:ryb
The first task at hand is to set up the endpoints appropriately for this example. The following code switches the CPU clock speed to 48 MHz (since at power-on default it is 12 MHz), and sets up EP2 as a Bulk OUT endpoint, 4x buffered of size 512, and EP6 as a Bulk IN endpoint, also 4x buffered of size 512. This set-up utilizes the maximum allotted 4-KB FIFO space. It also sets up the FIFOs for manual mode, word-wide operation, and goes through a FIFO reset and arming sequence to ensure that they are ready for data operations
标签: appropriately The endpoints following
上传时间: 2013-12-02
上传用户:dianxin61
This a linux device driver for Ralink RT2500USB b/g WLAN Card. This driver implements basic 802.11 function. Infrastructure and Ad-hoc mode with open or shared or wpapsk or wpa2psk authentication method. WEP-40 and WEP-104 or tkip or aes encryption.
标签: driver This implements Ralink
上传时间: 2016-03-10
上传用户:cc1015285075
Making a cheap 1M SPI Rom Emulator 8 second to copy from parallel to SPI re-Program STM Serial Flash M25P10 by reading 29010 parallel ROM Running on standard 8051 32 I/O, a TTL 7407 as bus switch. Total programming time is about 8 seconds including Erase, Program
标签: re-Program SPI Emulator parallel
上传时间: 2016-03-22
上传用户:wanqunsheng