Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 26 Nov 2002 21:17:02 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 26 Nov 2002 21:17:02 -0500 Received: from [210.176.202.14] ([210.176.202.14]:48019 "EHLO mail.shaolinmicro.com") by vger.kernel.org with ESMTP id ; Tue, 26 Nov 2002 21:17:01 -0500 Message-ID: <3DE42CD1.8040902@shaolinmicro.com> Date: Wed, 27 Nov 2002 10:24:17 +0800 From: David Chow Organization: Shaolin Microsystems Ltd. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: zh_TW, en MIME-Version: 1.0 To: linux-kernel@vger.kernel.org Subject: serial port buffer commit Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 615 Lines: 17 Hi all, I am writing a kernel thread for serial port communication. If the serial character device file is opened by a filp_open() or manipulating using a struct file in the kernel, how can I know whether the previous written buffer has commit or not? Similarly, how do I know is there any data ready for read for non blocking access? Thanks. regards, David Chow - 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/