Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261447AbVEBQdM (ORCPT ); Mon, 2 May 2005 12:33:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261438AbVEBQaf (ORCPT ); Mon, 2 May 2005 12:30:35 -0400 Received: from lantana.tenet.res.in ([202.144.28.166]:36523 "EHLO lantana.cs.iitm.ernet.in") by vger.kernel.org with ESMTP id S261447AbVEBQ31 (ORCPT ); Mon, 2 May 2005 12:29:27 -0400 Date: Mon, 2 May 2005 21:59:59 +0530 (IST) From: "P.Manohar" To: linux-kernel@vger.kernel.org Subject: stuffing characters to keyboard buffer. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-MailScanner-Information: Please contact the ISP for more information X-MailScanner: Mail-scanner Found to be clean X-MailScanner-From: pmanohar@lantana.cs.iitm.ernet.in Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 882 Lines: 25 hai, I want to stuff the characters received on a serial line into the keyboard buffer, so that they will be send to applications as if they are coming from keyboard irrespective of console or x-windows mode. For this purpose, I planned to use ioctls. Can anybody tell how to send an ioctl to keyboard driver? AFAIK, tty_flip_buffer is the buffer from which both console and x-windows will take input. If we insert into this buffer, I think the purpose will be served. Now the question is how to send ioctl to this buffer. can you please give any suggestions on this? Thanks&Regards, P.Manohar, - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/