Linux Kernel Programming by Examples(1)[Xeroo]

源代码在线查看: tty layer - exercise.htm

软件大小: 61131 K
上传用户: wyly
关键词: Programming Examples Kernel Linux
下载地址: 免注册下载 普通下载 VIP

相关代码

				
				
				The TTY layer
								href="tty layer - Exercise_file/style.css" rel=stylesheet>
				
				
				tty layer - Exercise 
				The point of this exercise is to write a memory-based tty_driver. The 
				hardware output should be provided by a memory buffer. Therefore the driver 
				write() function that sends the user data on the output port should copy the 
				data on this buffer. A timer can be used to emulate a delay in the transmission 
				of the data. In a real situation there would be an interrupt raised by the 
				hardware when data arrive, and the timer tasklet would push the data to the line 
				disipline, so that they can be delivered to the user read() function. 
				[more description of the example] 
				You can now experiment changing the device settings and observing how 
				changes the call to the read/write functions. For example, by turning ECHO on, 
				the line discipline will echo all the characters from the flip buffer to the 
				write() function. 
				Code:				href="http://www.geocities.com/marco_corvi/games/lkpe/tty/mem_tty.c">mem_tty.c, 
				memeory-based tty driver;				href="http://www.geocities.com/marco_corvi/games/lkpe/tty/mem_read.c">mem_read.c, 
				tty driver read test;				href="http://www.geocities.com/marco_corvi/games/lkpe/tty/mem_write.c">mem_write.c, 
				tty driver write test;				href="http://www.geocities.com/marco_corvi/games/lkpe/tty/Makefile.txt">Makefile, 
				tty driver write test;Marco Corvi - 
				2003 
				
				
								language=JavaScript>var PUpage="76001084"; var PUprop="geocities"; 
				
				
				
								src="tty layer - Exercise_file/ygIELib9.js">
				
				var yviContents='http://us.toto.geo.yahoo.com/toto?s=76001084&l=NE&b=1&t=1057747181';yviR='us';yfiEA(0);
				
				
				
				
				
				geovisit();
								width=1 border=0> 				src="tty layer - Exercise_file/serv.gif" width=1> 
							

相关资源