From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 27 07:58:10 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1579A37B401 for ; Fri, 27 Jun 2003 07:58:10 -0700 (PDT) Received: from cs.huji.ac.il (cs.huji.ac.il [132.65.16.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB7AC43F85 for ; Fri, 27 Jun 2003 07:58:08 -0700 (PDT) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32] ident=danny) by cs.huji.ac.il with esmtp id 19Vuft-000IXE-00; Fri, 27 Jun 2003 17:58:05 +0300 X-Mailer: exmh version 2.6.3 04/04/2003 with nmh-1.0.4 To: "M. Warner Losh" In-reply-to: Your message of Wed, 25 Jun 2003 13:33:52 -0600 (MDT) . Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 27 Jun 2003 17:58:05 +0300 From: Danny Braniss Message-Id: cc: freebsd-hackers@freebsd.org Subject: Re: USB, select/poll for ucom X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jun 2003 14:58:10 -0000 > I thought that ucom does do that. It uses ttypoll as its polling > function, and seems to insert data into the tty structure on an > interrupt basis. That is hidden a little bit by the usb driver > structure. In the middle of ucomopen we call ucomstartread which > posts a read onto the bulk in pipe. This read fires a callback when > it is 'finished' which the processes the data. So I think that maybe > that transfer is never completing. > > Warner some more reading, and it seems that indeed open fires up a startread, so that select should work. In my case, i just went the old fashion way, sigalarm/read, but it seems that nothing is being read by the driver :-( assuming that uco/ulpcom works - the problem must be in the way this smartcard reader works. thanks, danny