lkml.org 
[lkml]   [2000]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectmsg in kernel
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:
int sys_my_msgsnd(int msqid,struct msgbuf *msgp,size_t msgsz,int msgflg)
{
return real_msgsnd(msqid,msgp,msgsz,msgflg|IPC_KERNELD);
}
It works properly,but occasionally it can't. The msg has been sent out by
device interrupt routine,but the user process is still sleeping. I have to
manually receive this msg and send it out again, then the user process can
wake up and go on.
I dont know how to solve this problem, could you give me any hinds about it.

thanks
wang fang


___________________________________________________________________
ÍÆŒö£¡EaseBand( http://easeband.163.com )ÈÃÄãÇáËÉÉÏÍø¡£


-
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.066 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site