In ubuntu10.04 linux kernel if I insmod a module which runs
while(1);
in init_module
part, entire system stops.
However, if I load a sys file in Windows 7
which runs while(1);
in DriverEntry
part,
system gets slow but still works.
can someone explain me why two system differs and what is happening inside kernel?...
I think in first case(infinite loop in init_module
),
there is no reason the system stops. because
even if I make while(1);
in init_module
, it is running
in context of insmod
user application program.
so the flow infinite loop has to be scheduled by hardware interrupt signal.
This is just my opinion, I want to know the details if I am wrong...