sufeng
驱动牛犊
驱动牛犊
  • 注册日期2002-04-27
  • 最后登录2004-08-10
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1173回复:1

linux下driver如何和ring3进程共享一段内存?

楼主#
更多 发布于:2003-03-21 17:44
我想在ring3进程中共享driver分配的内存,该如何做?
hometown
驱动大牛
驱动大牛
  • 注册日期2002-10-24
  • 最后登录2004-05-21
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2003-03-22 12:37
这个问题我暂时还没有想清楚, 不过提供下面的信息供参考:

LINUX是个MONOLITHIC系统, 就是说整个OS是作为一个进程来运行的, 这和MICROKERNEL的OS不一样, MICROKERNEL系统有多个进程(指核心)运行, 进程间是通过消息来通信的。 另外LINUX本身只使用了INTEL 80X86四层环中的两环, 即RING0和RING3, OS运行于RING0, 用户进程运行于RING3, OS不可以直接访问用户进程的数据, 而是通过get_user()和put_user()来完成的。 在LINUX中, DRIVER和OS绑定在一起, 按核心进程(只有一个进程, 这个进程是手工创建的, 而不是通过fork()或kernel_thread()来创建的)来运行。
How fair and how pleasant art thou, O love, for delights!This thy stature is like to a palm tree, and thy breasts to clusters of grapes.I said, I will go up to the palm tree, I will take hold of the boughs thereof: now also thy breasts shall be as clusters of the vine, and the smell of thy nose like apples;And the roof of thy mouth like the best wine for my beloved, that goeth down sweetly, causing the lips of those that are asleep to speak.
游客

返回顶部