Re: kernel_thread

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

 



--- R!SC <risc54@inwind.it> wrote:
> hi,
> 
> why when i link the module it block the system?
> int my_thread( ){
> 
> while(1){
> 
>    // do something
> 
> }
> return 0;
> 
> }
> 
> 
> init_module:
> 
>       kernel_thread(my_thread,NULL, CLONE_FS |CLONE_FILES |
> CLONE_SIGNAL);
> 
> 
> how can i resolve it?
> 
> 

Dude.  How do you exit your while(1)?  Sounds like an endless loop
thing to me.  Put a break statement somewhere in that // do something
code.

Hope this was actually of some use.

Harmony,

--Christine


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.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