lkml.org 
[lkml]   [1997]   [Jul]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Kernel-user application/deamon communication
On Wed, 23 Jul 1997, Yusuf Motiwala wrote:

>
> Hello All,
>
> I'm writing a application for which I require kernel to send/read some
> information to/from application. Since, the situation is that kernel
> initiate the communication with the application whenever it requires and
> hence I can not use ioctl function call. Can any kernel guru give me some
> hint/idea ?
>
> any help would be appreciated,

I would use the kerneld API to start the application. The application
would come back and open some file and use read/write/ioctl to manage
request from your application. The function to use is called ksystem()
defined in kerneld.h

static inline int ksystem(const char *cmd, int waitflag)


--------------------------------------------------------
Jacques Gelinas (jacques@solucorp.qc.ca)
Linuxconf: The ultimate administration system for Linux.
see http://www.solucorp.qc.ca/linuxconf
new development: linuxconf configure dhcpd since 1.9r7


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