Re: Broadcasting to terminals from kernelspace?

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

 



Hi,

           This is just info ,U can check struct tty_struct and (linux/sched.h)current->signal->tty, and tty_driver ops in (linux/tty.h) and (linux/tty_driver.h), tty_operations and write  function,
Please ignore me if I am wrong.

Regards,

      
         
 
 





--- On Fri, 27/8/10, Mulyadi Santosa <mulyadi.santosa@xxxxxxxxx> wrote:

From: Mulyadi Santosa <mulyadi.santosa@xxxxxxxxx>
Subject: Re: Broadcasting to terminals from kernelspace?
To: "Scream" <poisonthemon@xxxxxxxxx>
Cc: "Martin" <martin.knappe@xxxxxxxxx>, kernelnewbies@xxxxxxxxxxxx
Date: Friday, 27 August, 2010, 9:52 PM

On Fri, Aug 27, 2010 at 13:20, Scream <poisonthemon@xxxxxxxxx> wrote:
> No, I don't want a printk() call, I want to broadcast to all open
> terminals, much like the 'wall' command does.

Please don't top post :)

Yes,it is printk() you need....use highest priority level...most
likely the message will be dumped right on the screen..instead of
being catched by syslogd. And assuming that your X is running
something similar to "syslog", it will be printed to X too. I remember
seeing this kind of thing in KDE 3.x

--
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

--
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