Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751081AbWEQV1r (ORCPT ); Wed, 17 May 2006 17:27:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751131AbWEQV1r (ORCPT ); Wed, 17 May 2006 17:27:47 -0400 Received: from mx0.towertech.it ([213.215.222.73]:45524 "HELO mx0.towertech.it") by vger.kernel.org with SMTP id S1751081AbWEQV1r (ORCPT ); Wed, 17 May 2006 17:27:47 -0400 Date: Wed, 17 May 2006 23:27:42 +0200 From: Alessandro Zummo To: "Randy.Dunlap" Cc: akpm@osdl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] rtc subsystem, use ENOIOCTLCMD where appropriate Message-ID: <20060517232742.2ac4ccaa@inspiron> In-Reply-To: <20060517142510.b3fcfb7d.rdunlap@xenotime.net> References: <20060517013033.10d08a8f@inspiron> <20060517142510.b3fcfb7d.rdunlap@xenotime.net> Organization: Tower Technologies X-Mailer: Sylpheed Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 847 Lines: 34 On Wed, 17 May 2006 14:25:10 -0700 "Randy.Dunlap" wrote: > On Wed, 17 May 2006 01:30:33 +0200 Alessandro Zummo wrote: > > > > > > > Appropriately use -ENOIOCTLCMD when > > the ioctl is not implemented by a driver. > > so this return value does not go back to userspace? > Comment in linux/errno.h says: > /* Should never be seen by user programs */ > > and ENOTTY is the return value for "Inappropriate ioctl for device": > you're right. I'll go for ENOTTY. thanks. -- Best regards, Alessandro Zummo, Tower Technologies - Turin, Italy http://www.towertech.it - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/