Help!

Alternatives to signals


Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> System Development RSS
Next:  iostat and disk I/O operations  
Author Message
harsha.kgp
External


Since: Jul 10, 2007
Posts: 2



PostPosted: Tue Jul 10, 2007 12:36 am    Post subject: Alternatives to signals
Archived from groups: comp>os>linux>development>system (more info?)

hi,
I am trying to send notifiications from kernel to user-mode
process in linux. What are the ways to achieve this?
I found two ways
1) signals
2) using the /proc file system

are there any other ways to to notify user mode process from the
kernel.

thanks
harry
Back to top
ellis
External


Since: Apr 02, 2004
Posts: 193



PostPosted: Tue Jul 10, 2007 12:55 am    Post subject: Re: Alternatives to signals [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <1184027806.007029.213500.TakeThisOut@j4g2000prf.googlegroups.com>,
<harsha.kgp.TakeThisOut@gmail.com> wrote:

>are there any other ways to to notify user mode process from the
>kernel.

Theres select and poll.
Back to top
Bin Chen
External


Since: Jun 01, 2007
Posts: 37



PostPosted: Tue Jul 10, 2007 7:22 am    Post subject: Re: Alternatives to signals [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Jul 10, 8:36 am, harsha.... RemoveThis @gmail.com wrote:
> hi,
> I am trying to send notifiications from kernel to user-mode
> process in linux. What are the ways to achieve this?
> I found two ways
> 1) signals
> 2) using the /proc file system
>
> are there any other ways to to notify user mode process from the
> kernel.
>
> thanks
> harry

netlink socket, google it.
Back to top
Josef Moellers
External


Since: Jul 07, 2005
Posts: 389



PostPosted: Tue Jul 10, 2007 10:00 am    Post subject: Re: Alternatives to signals [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

harsha.kgp RemoveThis @gmail.com wrote:
> hi,
> I am trying to send notifiications from kernel to user-mode
> process in linux. What are the ways to achieve this?
> I found two ways
> 1) signals
> 2) using the /proc file system
>
> are there any other ways to to notify user mode process from the
> kernel.

There's only one way to send asynchronous notifications to a user
process and that is signals.
Obviously, there are a couple of other ways to send synchronous
notifications: select/poll, read in /proc or /sys or /dev.

--
These are my personal views and not those of Fujitsu Siemens Computers!
Josef Möllers (Pinguinpfleger bei FSC)
If failure had no penalty success would not be a prize (T. Pratchett)
Company Details: http://www.fujitsu-siemens.com/imprint.html
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> System Development All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum