Re: strange... insmod of module with printk swallows console keypress

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

 



Hi

On Thu, Feb 5, 2009 at 2:42 AM, David Wuertele <dave+gmane@xxxxxxxxxxxx> wrote:
> I cross-compile linux for a broadcom mips-based set-top box, and recently when I
> upgraded the kernel version from 2.6.12 to 2.6.18, I noticed that executing
> insmod or rmmod on a module that outputs a printk causes the serial console to
> temporarily swallow a keypress.
>
> For example, I telnet into a unit and type "insmod mymodule".  On the target's
> serial console, the mymodule_init_module() function does printk("Dave was
> here\n");.  After the insmod is done, if I make any single keypress on the
> serial console, the key is not echoed.  Upon making a second keypress, the first
> two keys are echoed.
>
> The problem did not exist with 2.6.12, and it does not occur when running insmod
> or rmmod on a module that does not have any printk() calls.
>
> Does anyone have advice where/how I could look for the cause of this annoying
> behavior?

I am just guessing that somehow terminal driver is "buffering" the
output for a moment. Try to check any .c files that deal with tty
handling. Also, likely during init_ of a module, tty is temporarily
locked or something like that.

Just 2 cents humble thought..

regards,

Mulyadi.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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