RE: Send information from kernel to user

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 --- "Dhiman, Gaurav" <Gaurav.Dhiman@xxxxxx> wrote : 
> 
> If you are trying to just write some specific data
> to log file at each fork() and exit() system call,
> it would be better that you register some type of
> signal to the kernel first (using sigaction() system
> call) and then do fork () and exit().

I'm trying to apply kind of user space filters. Here
is what I'd like to do. A user space application will
control the behaviour of some programs. For example,
the user can add a program to be under control, let's
say mozilla, and I want to display information about
mozilla and all its children with my user space
application and apply some filters (things like renice
or anything else). That's why I need to know when
mozilla calls sys_fork. The problem with the signal is
that it will be send to mozilla but not to my user
space application right? So, is it possible to send
from the do_fork() routine a signal to my user space
application (that is not the current one when
forking)?

Otherwise, I was thinking to use the kernel event
notification patch but I think that using the routine
send_kevent() when forking will slow down my system.

Thank you for your help
Regards,
Patrick


	

	
		
Vous manquez d?espace pour stocker vos mails ? 
Yahoo! Mail vous offre GRATUITEMENT 100 Mo !
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/

Le nouveau Yahoo! Messenger est arrivé ! Découvrez toutes les nouveautés pour dialoguer instantanément avec vos amis. A télécharger gratuitement sur http://fr.messenger.yahoo.com

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux