Re: Calling call_usermodehelper from kernel thread

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

 



On Tue, Jan 29, 2002 at 01:14:53AM -0800, Swapnil Nagle wrote:
> > > The problem is that control is not coming to my_program 
> > > since the "hello world" message does not get printed. 
> > 
> > Where would you expect "hello world" to be printed to, as what is
> > stdout set to?
> > 
> 
> How do I set stdout? 

You can't.

> Also, instead of printing to console,I tried printing to 
> file using fprintf. It does not work.

Try pointing /proc/sys/kernel/hotplug to your program and cause a
hotplug event to happen (plug/unplug a usb device, etc.)  See how your
program runs when the kernel calls it.

Good luck,

greg k-h
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[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