Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750997AbWERWiw (ORCPT ); Thu, 18 May 2006 18:38:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751019AbWERWiw (ORCPT ); Thu, 18 May 2006 18:38:52 -0400 Received: from terminus.zytor.com ([192.83.249.54]:5081 "EHLO terminus.zytor.com") by vger.kernel.org with ESMTP id S1750982AbWERWiw (ORCPT ); Thu, 18 May 2006 18:38:52 -0400 Message-ID: <446CF763.6020209@zytor.com> Date: Thu, 18 May 2006 15:38:27 -0700 From: "H. Peter Anvin" User-Agent: Thunderbird 1.5.0.2 (X11/20060501) MIME-Version: 1.0 To: Ingo Oeser CC: linux-kernel@vger.kernel.org, Alessandro Zummo Subject: Re: [PATCH] rtc subsystem, use ENOIOCTLCMD where appropriate References: <20060517013033.10d08a8f@inspiron> <20060517232742.2ac4ccaa@inspiron> <200605190032.25796.ioe-lkml@rameria.de> In-Reply-To: <200605190032.25796.ioe-lkml@rameria.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1123 Lines: 32 Ingo Oeser wrote: > Hi Hans Peter, > > H. Peter Anvin wrote >> ENOIOCTLCMD is right here, *except* in the very last hunk, because >> it's a request to the upper layers to emulate the operation: > > So would a patch like this be welcome and clear this up? > > diff --git a/include/linux/errno.h b/include/linux/errno.h > index d90b80f..d33ae4b 100644 > --- a/include/linux/errno.h > +++ b/include/linux/errno.h > @@ -9,7 +9,7 @@ > #define ERESTARTSYS 512 > #define ERESTARTNOINTR 513 > #define ERESTARTNOHAND 514 /* restart if no handler.. */ > -#define ENOIOCTLCMD 515 /* No ioctl command */ > +#define ENOIOCTLCMD 515 /* No ioctl command, upper layer please emulate or pass ENOTTY to user space */ > #define ERESTART_RESTARTBLOCK 516 /* restart by calling sys_restart_syscall */ > > /* Defined for the NFSv3 protocol */ > Sure, if people feel it's necessary. -hpa - 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/