mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Query - How to Send Signal to application from kernel module !
@ 2001-11-20  7:13 Akshat Kapoor
  2001-11-20  8:05 ` Sameer K S
  2001-11-20  8:21 ` Sebastian Heidl
  0 siblings, 2 replies; 3+ messages in thread
From: Akshat Kapoor @ 2001-11-20  7:13 UTC (permalink / raw)
  To: linux-kernel

Hi All,
         I'm writing a network device driver.  I want to communicate with an
application running in user mode. I want to send a signal (using
something like kill) on which the application would be listening.
Subsequently the application will send an IOCTL call to the driver to fetch
the information.
Is it possible in Linux to send  a signal to an application from a driver ?
I've done this in Windows NT but Idont know how to do it in Linux. I
searched
the archives but couldn't find any relevant thread. I tried to use the kill
system call but when I compiled the driver with  <signal.h> it gave me all
sorts of errors. Also the equivalent signal.h in kernel source tree doesn't
have a proto for kill().
Am I missing something ?
Sorry if I'm asking something silly as I'm new to this but can somebody
kindly point me to the right direction ?

TIA,
Regards,
Akshat


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Query - How to Send Signal to application from kernel module !
  2001-11-20  7:13 Query - How to Send Signal to application from kernel module ! Akshat Kapoor
@ 2001-11-20  8:05 ` Sameer K S
  2001-11-20  8:21 ` Sebastian Heidl
  1 sibling, 0 replies; 3+ messages in thread
From: Sameer K S @ 2001-11-20  8:05 UTC (permalink / raw)
  To: Akshat Kapoor, linux-kernel

You might want to check out async notification stuff at
http://www.xml.com/ldd/chapter/book/ch05.html#t4

Sameer.

-----Original Message-----
From: linux-kernel-owner@vger.kernel.org
[mailto:linux-kernel-owner@vger.kernel.org]On Behalf Of Akshat Kapoor
Sent: Monday, November 19, 2001 11:14 PM
To: linux-kernel@vger.kernel.org
Subject: Query - How to Send Signal to application from kernel module !


Hi All,
         I'm writing a network device driver.  I want to communicate with an
application running in user mode. I want to send a signal (using
something like kill) on which the application would be listening.
Subsequently the application will send an IOCTL call to the driver to fetch
the information.
Is it possible in Linux to send  a signal to an application from a driver ?
I've done this in Windows NT but Idont know how to do it in Linux. I
searched
the archives but couldn't find any relevant thread. I tried to use the kill
system call but when I compiled the driver with  <signal.h> it gave me all
sorts of errors. Also the equivalent signal.h in kernel source tree doesn't
have a proto for kill().
Am I missing something ?
Sorry if I'm asking something silly as I'm new to this but can somebody
kindly point me to the right direction ?

TIA,
Regards,
Akshat

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Query - How to Send Signal to application from kernel module !
  2001-11-20  7:13 Query - How to Send Signal to application from kernel module ! Akshat Kapoor
  2001-11-20  8:05 ` Sameer K S
@ 2001-11-20  8:21 ` Sebastian Heidl
  1 sibling, 0 replies; 3+ messages in thread
From: Sebastian Heidl @ 2001-11-20  8:21 UTC (permalink / raw)
  To: Akshat Kapoor; +Cc: linux-kernel

On Tue, Nov 20, 2001 at 12:43:52PM +0530, Akshat Kapoor wrote:
> Is it possible in Linux to send  a signal to an application from a driver ?
> I've done this in Windows NT but Idont know how to do it in Linux. I
have a look at kernel/signal.c
I think you can use all the send_* force_* and kill_* functions but I'm not sure
with this. Currently I used kill_proc_info and force_sig and they worked just
fine.

HTH,
_sh_


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-11-20  8:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-20  7:13 Query - How to Send Signal to application from kernel module ! Akshat Kapoor
2001-11-20  8:05 ` Sameer K S
2001-11-20  8:21 ` Sebastian Heidl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®