Re: msg in kernel

From: Richard B. Johnson (root@chaos.analogic.com)
Date: Fri Feb 25 2000 - 09:26:14 EST


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/



This archive was generated by hypermail 2b29 : Tue Feb 29 2000 - 21:00:12 EST