wfeiisch
驱动牛犊
驱动牛犊
  • 注册日期2002-10-17
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1456回复:3

请问用interruptible_sleep_on??

楼主#
更多 发布于:2003-03-04 20:09
请问用interruptible_sleep_on让一进程睡眠,有该进程的中断时该进程是不是就会被唤醒???
hometown
驱动大牛
驱动大牛
  • 注册日期2002-10-24
  • 最后登录2004-05-21
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2003-03-05 18:56
请问用interruptible_sleep_on让一进程睡眠,有该进程的中断时该进程是不是就会被唤醒???
这种情况是怎么发生的? 应该只可能向这个进程送信号, 由于该进程睡眠, 不能接收, 而且已经睡眠, 怎么产生中断呢? 请给个具体的情况
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.
wfeiisch
驱动牛犊
驱动牛犊
  • 注册日期2002-10-17
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2003-03-07 12:30
是这样的:

我在从硬件读数据的时候采用了dma,我的进程启动了dma传输后就被睡眠了,我想在dma结束后产生一个中断,唤醒该进程,告诉它dma 传输结束了,该进程就把数据拷贝到用户空间并返回!!


我想知道,是不是中断来了会自动唤醒该进程,而不需要我在中断处理中用wake_up 唤醒它!!??
ostrich
驱动牛犊
驱动牛犊
  • 注册日期2002-02-20
  • 最后登录2007-06-18
  • 粉丝0
  • 关注0
  • 积分50分
  • 威望5点
  • 贡献值0点
  • 好评度5点
  • 原创分0分
  • 专家分0分
地板#
发布于:2003-03-07 12:41
当然需要在中断中唤醒,你用的是interruptible_sleep_on,
对应的最好用wake_up_interruptible.
游客

返回顶部