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