lkml.org 
[lkml]   [2000]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: msg in kernel
On Fri, 25 Feb 2000, wf wrote:

> I need to use IPC msg system call in my device interrupt routine to info
> user process, but it seems have no such surport.So i add my msg system call
> interface in msg.c like the following:
(Possible Troll code)

You don't ever do anything like that! An interrupt can/will occur at
any time. Your user's code/data may not even be in memory at the time.

Hint: poll()(in your driver) and wake_up_interruptible()(in your ISR).
Look at other drivers. Do not try to "invent" something.

Cheers,
Dick Johnson

Penguin : Linux version 2.3.41 on an i686 machine (800.63 BogoMips).


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.050 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site