| 
			 
					阅读:1853回复:2
				 
				socket in kernel mode
					Hello,everyone, does anyone know how to use the socket in kernel mode? In my block device driver I need to communicate with another computer in the network. Thanks, any help will be appreciated.				 
							 | 
	|
| 
			 沙发# 
								发布于:2002-02-19 12:33				
			
					Standard 2.4.x kernel tree
 
							Take a look at khttpd, /usr/src/net/khttpd, kernel mode http server. In case of Redhat 7.2. /usr/src/net/tux, Redhat kernel mode http server. Both of them are acctully are more than just k sockets, they showed how k socket can be used with user mode socket.  | 
	|
| 
			 板凳# 
								发布于:2002-02-19 10:45				
			
					you can allocate a skbuff, and fill it with what you should send throught network, and call the function dev_queue_xmit(skb); to send the buffer to NIC				 
							 | 
	|