From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 31 09:48:13 2004 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 7371416A4CE for ; Wed, 31 Mar 2004 09:48:13 -0800 (PST) Received: from mail6.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4FA0443D1F for ; Wed, 31 Mar 2004 09:48:13 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 19600 invoked from network); 31 Mar 2004 17:48:12 -0000 Received: from dsl017-045-168.spk4.dsl.speakeasy.net (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail6.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 31 Mar 2004 17:48:12 -0000 Received: from hydrogen.funkthat.com (zmjktu@localhost.funkthat.com [127.0.0.1])i2VHmBOE006673; Wed, 31 Mar 2004 09:48:11 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id i2VHmAvn006672; Wed, 31 Mar 2004 09:48:10 -0800 (PST) Date: Wed, 31 Mar 2004 09:48:10 -0800 From: John-Mark Gurney To: Claudio Martella Message-ID: <20040331174810.GV567@funkthat.com> Mail-Followup-To: Claudio Martella , freebsd-hackers@freebsd.org References: <49522.62.101.126.224.1079395238.squirrel@webmail.ikon-corp.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49522.62.101.126.224.1079395238.squirrel@webmail.ikon-corp.it> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: freebsd-hackers@freebsd.org Subject: Re: noread(), nopoll().... functions X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Mar 2004 17:48:13 -0000 Claudio Martella wrote this message on Tue, Mar 16, 2004 at 01:00 +0100: > Hi, i'm writing a driver, and noticed the noread() nopoll() etc > general-use functions for struct cdevsw are no longer present in 5.x. What > can i use in 5.x? In 5.x we now use C99 sparse struct initalization for this. You can just not include them in your definition, and you'll get the defaults for this.. check prep_cdevsw in kern_conf.c for how this is done... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."