From owner-freebsd-drivers@FreeBSD.ORG Wed Jun 10 12:35:30 2009 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 36BB7106566C for ; Wed, 10 Jun 2009 12:35:30 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: from mail-bw0-f214.google.com (mail-bw0-f214.google.com [209.85.218.214]) by mx1.freebsd.org (Postfix) with ESMTP id B61ED8FC08 for ; Wed, 10 Jun 2009 12:35:29 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: by bwz10 with SMTP id 10so74112bwz.43 for ; Wed, 10 Jun 2009 05:35:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=7zExYtcPNLiD3wTd55NmW/v25mc+zJOaSYFvhdwFGQ0=; b=hlncXuyqk7PieHDDdj1GljglsVp4PnUjnulPTE7HppA89BPCknoCdxIbfuliYfteNp OjkPV9n7l5MhM8qGyRJCLLcNMv3xJmM35NbfcEFgns3qcHY2Spfd67ggiOy54lcPRCXk 6KHRMuv+PHMgpWvaJsC7jipWvL+EF6X7nax2A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=CdMltTd6IHogruhPu2Q5L3kx39LKdr/C3nvtI8+EXXnJkYTbHCZSUSaBc2LZ3bQQSt wt1ahzca1WCXDOaWCDmWIQOTH3KwL2LJSzIHpv0KOw+AysGPDUdCjOlNf3F4NfT6PB1R tgILtadhoTkY9QOS1t/yhQ2T1q9xUSifVZwuE= MIME-Version: 1.0 Received: by 10.239.151.15 with SMTP id p15mr100587hbb.139.1244635494935; Wed, 10 Jun 2009 05:04:54 -0700 (PDT) In-Reply-To: <4A2F85CE.3030306@gmail.com> References: <4A2F85CE.3030306@gmail.com> Date: Wed, 10 Jun 2009 09:04:54 -0300 Message-ID: From: "Carlos A. M. dos Santos" To: cooper Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-drivers@freebsd.org Subject: Re: how to write a block driver X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jun 2009 12:35:30 -0000 2009/6/10 cooper : > There are a lot of examples about how to write a charactor device, I > didn't find one about block device( or in moden word, a disk device? ) > Is there a tutorial about it? There are no block devices in FreeBSD since a long time ago: http://www.freebsd.org/doc/en/books/arch-handbook/driverbasics-block.html -- My preferred quotation of Robert Louis Stevenson is "You cannot make an omelette without breaking eggs". Not because I like the omelettes, but because I like the sound of eggs being broken.