Re: while(1) in init_module()

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

 



On 1/10/06, Rajaram Suryanarayanan <rajaram_linux@xxxxxxxxx> wrote:> Hi,>>  In the init_module() of a kernel module , I inserted>> while(1);>instead to be able to pass keyboard and other interrupts.
> and then tried to insert the module. When I insmoded the module, the system> hung without any keyboard/ mouse responses.>> Why does this happen ?
I think your interrupts should get handled. You need to set your taskstate INTERRUPTIBLE
And moreover INSMOD may have special reservations try to check this ina different thread i guess.
I also need to clear this issue. Kindly somebody explain it more clearly.Nauman
> 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!>>ÿòž®w¥?ì‰ëÿéiy§!¢Ø^®Wš®v›¢ëm…ââžìdz¹Þ—ð+r¯{øm¶Ÿÿþf¢—ùåþX§»è®äz¹Þ–w°n'¬üPþm§ÿÿ‘êçzYÞÁ¸ž³ú+ƒ÷Ú


[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