while(1) in init_module()

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

 



Hi,
 
 In the init_module() of a kernel module , I inserted
 
while(1);
 
and then tried to insert the module. When I insmoded the module, the system hung without any keyboard/ mouse responses.
 
Why does this happen ?
Even if the insmod() is busy in the kernel mode with while(1); , it should have been preempted by scheduler to run other processes..right ? ( as kernel 2.6 is preemptive even in kernel mode ).
 
 
Thanks,
Rajaram.


Yahoo! Photos ? Showcase holiday pictures in hardcover
Photo Books. You design it and we?ll bind it!

[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