Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262763AbTHUPIY (ORCPT ); Thu, 21 Aug 2003 11:08:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262764AbTHUPIY (ORCPT ); Thu, 21 Aug 2003 11:08:24 -0400 Received: from ext-ch1gw-2.online-age.net ([216.34.191.36]:20414 "EHLO ext-ch1gw-2.online-age.net") by vger.kernel.org with ESMTP id S262763AbTHUPIX (ORCPT ); Thu, 21 Aug 2003 11:08:23 -0400 Message-ID: From: "Heater, Daniel (IndSys, GEFanuc, VMIC)" To: "'Pankaj Garg'" , linux-kernel@vger.kernel.org Subject: RE: Messaging between kernel modules and User Apps Date: Thu, 21 Aug 2003 11:05:27 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2655.55) Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 680 Lines: 17 > I am writing a kernel module. The module will need to send asynchronous > messages to a User Application. Is there a good and efficient way of > doing this? Let user space read the data from a device file. Use poll/select to handle the asynchronous notification. The other option is to have the driver send a signal to user space. I've done that before, but at best it's a hack and not neatly supported by the Linux driver model. - 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/