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

Re: kernel_thread



On Fri, May 31, 2002 at 07:47:18PM +0200, R!SC wrote:
> why when i link the module it block the system?

I've never used kernel_thread() before, but poking around a bit, I see
that at least kswapd calls daemonize() quickly. Perhaps before your
infinite loop, you ought to call daemonize() too? Let us know how it
goes.

> int my_thread( ){
> 
> while(1){
> 
>    // do something
> 
> }
> return 0;
> 
> }
> 
> 
> init_module:
> 
>       kernel_thread(my_thread,NULL, CLONE_FS |CLONE_FILES | CLONE_SIGNAL);

-- 
http://immunix.org/

PGP signature