From owner-freebsd-usb@FreeBSD.ORG Mon Oct 6 11:03:17 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2A456181; Mon, 6 Oct 2014 11:03:17 +0000 (UTC) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E08CF918; Mon, 6 Oct 2014 11:03:16 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 5FB371FE022; Mon, 6 Oct 2014 13:03:14 +0200 (CEST) Message-ID: <543276EF.5080809@selasky.org> Date: Mon, 06 Oct 2014 13:03:11 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: lev@FreeBSD.org, freebsd-usb@freebsd.org Subject: Re: Is here maximum size of buffer for libusb_fill_bulk_transfer() call? References: <543274CE.5080308@FreeBSD.org> In-Reply-To: <543274CE.5080308@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Oct 2014 11:03:17 -0000 On 10/06/14 12:54, Lev Serebryakov wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 > > > Is here practical buffer size limit? I mean, maybe, standard limits > transfer size by 64K or something like this? > Hi, If the transfer is too big, libusb in FreeBSD loops using an internal buffer, unlike Linux. You should be able to setup any positive length which fits into an integer of type "int" or "uint32_t". --HPS