From owner-freebsd-net Mon Oct 8 8:18:36 2001 Delivered-To: freebsd-net@freebsd.org Received: from ussenterprise.ufp.org (ussenterprise.ufp.org [208.185.30.210]) by hub.freebsd.org (Postfix) with ESMTP id EC38237B405; Mon, 8 Oct 2001 08:18:29 -0700 (PDT) Received: (from bicknell@localhost) by ussenterprise.ufp.org (8.11.1/8.11.1) id f98FIQ100971; Mon, 8 Oct 2001 11:18:26 -0400 (EDT) (envelope-from bicknell) Date: Mon, 8 Oct 2001 11:18:26 -0400 From: Leo Bicknell To: Warner Losh Cc: Yar Tikhiy , net@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: Some thoughts on if_ioctl() Message-ID: <20011008111826.A887@ussenterprise.ufp.org> Mail-Followup-To: Leo Bicknell , Warner Losh , Yar Tikhiy , net@FreeBSD.ORG, hackers@FreeBSD.ORG References: <20011008113214.A68390@snark.rinet.ru> <200110081503.f98F3s759159@harmony.village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200110081503.f98F3s759159@harmony.village.org>; from imp@harmony.village.org on Mon, Oct 08, 2001 at 09:03:54AM -0600 Organization: United Federation of Planets Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Oct 08, 2001 at 09:03:54AM -0600, Warner Losh wrote: > Actaully, it should return ENOTTY rather than EINVAL. ENOTTY means > that the ioctl isn't understood. I've had to fix several drivers at > work that didn't follow this convention due to ignorance on the part > of the driver writer. I was looking for a discussion about this, and insted came across a much older discussion than I remembered. :-) Unfortunately I can't find a threaded view, so here are some links. http://mail-index.netbsd.org/current-users/1994/07/12/0006.html http://mail-index.netbsd.org/current-users/1994/07/12/0014.html http://mail-index.netbsd.org/current-users/1994/07/12/0016.html http://mail-index.netbsd.org/current-users/1994/07/12/0018.html -- Leo Bicknell - bicknell@ufp.org Systems Engineer - Internetworking Engineer - CCIE 3440 Read TMBG List - tmbg-list-request@tmbg.org, www.tmbg.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message