From owner-cvs-src Wed Feb 26 22:10:51 2003 Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 91A6237B405; Wed, 26 Feb 2003 22:10:49 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C4EF43FAF; Wed, 26 Feb 2003 22:10:48 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h1R6Aaaa002820; Thu, 27 Feb 2003 07:10:45 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: Nate Lawson Cc: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/cam/scsi scsi_target.c From: phk@phk.freebsd.dk In-Reply-To: Your message of "Wed, 26 Feb 2003 15:26:48 PST." Date: Thu, 27 Feb 2003 07:10:36 +0100 Message-ID: <2819.1046326236@critter.freebsd.dk> Sender: owner-cvs-src@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message , Nate Lawson wri tes: >On Wed, 26 Feb 2003, Poul-Henning Kamp wrote: >> Modified files: >> sys/cam/scsi scsi_target.c >> Log: >> msg >> >> Revision Changes Path >> 1.50 +0 -1 src/sys/cam/scsi/scsi_target.c > >Re: (removal of cdevsw_add() calls) > >So how is my driver supposed to be hooked in so that its open() function >is called to do the make_dev? In the past and without NO_DEVFS, the clone >handler was never called unless I also had cdevsw_add(). What is the >expected way of doing things now and are you sure it works? cdevsw_add() has never had anything to do the cloning function. The cloning function gets called when a name is looked up in /dev which has not previously been created make_dev(). -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-src" in the body of the message