piggy
驱动牛犊
驱动牛犊
  • 注册日期2001-08-24
  • 最后登录2012-01-14
  • 粉丝0
  • 关注0
  • 积分4分
  • 威望27点
  • 贡献值0点
  • 好评度16点
  • 原创分0分
  • 专家分0分
阅读:1631回复:2

socket in kernel mode

楼主#
更多 发布于:2002-02-19 00:54
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.
shownxu
驱动小牛
驱动小牛
  • 注册日期2002-02-05
  • 最后登录2008-04-25
  • 粉丝0
  • 关注0
  • 积分70分
  • 威望9点
  • 贡献值0点
  • 好评度7点
  • 原创分0分
  • 专家分0分
沙发#
发布于: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
shrek
驱动牛犊
驱动牛犊
  • 注册日期2002-01-08
  • 最后登录2004-12-05
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于: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.  
游客

返回顶部