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 <[email protected]> wrote:

From: Mulyadi Santosa <[email protected]>
Subject: Re: Broadcasting to terminals from kernelspace?
To: "Scream" <[email protected]>
Cc: "Martin" <[email protected]>, [email protected]
Date: Friday, 27 August, 2010, 9:52 PM

On Fri, Aug 27, 2010 at 13:20, Scream <[email protected]> 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 [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ



Reply via email to