From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2396 invoked by alias); 23 Jul 2007 05:53:10 -0000 Received: (qmail 2388 invoked by uid 22791); 23 Jul 2007 05:53:10 -0000 X-Spam-Check-By: sourceware.org Received: from fmmailgate02.web.de (HELO fmmailgate02.web.de) (217.72.192.227) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 23 Jul 2007 05:53:08 +0000 Received: from smtp07.web.de (fmsmtp07.dlan.cinetic.de [172.20.5.215]) by fmmailgate02.web.de (Postfix) with ESMTP id AADB58FB6EA3; Mon, 23 Jul 2007 07:53:05 +0200 (CEST) Received: from [82.119.170.143] (helo=[192.168.101.150]) by smtp07.web.de with asmtp (WEB.DE 4.108 #197) id 1ICqqv-0004sn-00; Mon, 23 Jul 2007 07:53:05 +0200 Message-ID: <46A441E8.40804@web.de> Date: Mon, 23 Jul 2007 05:53:00 -0000 From: Uwe Kindler User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: Alexey Shusharin CC: Sergei Gavrikov , cetoni GmbH - Uwe Kindler , ecos-discuss@sourceware.org References: <469F24AE.9060907@cetoni.de> <469F3371.2000204@mail.ru> <1184842025.17705.16.camel@sg-ubuntu> <20070720193516.GD28161@lunn.ch> <46A207FB.1020302@web.de> <20070721151040.GA8387@ubuntu> <46A428FF.7070401@mail.ru> In-Reply-To: <46A428FF.7070401@mail.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Sender: uwe_kindler@web.de Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] Re: Waiting I/O operation X-SW-Source: 2007-07/txt/msg00173.txt.bz2 Hello, I agree with Alexey. Normally a driver should work without kernel. But if some functions in the driver require kernel, you can force this configuration in driver CDL. I.e. the CAN I/O driver timed wait operations already require a kernel. So I think it is O.K. to provide callback functions if they are configurable via CDL. It is up to the application engineer to use an allowed synchronization in the callback function provided by the application. If the kernel is present, then cyg_flag_setbits() should work. And if someone does not like this, then he can disable callback (should be the default configuration in CDL) and use 2 threads instead. Regards, Uwe -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss