From: Keir Fraser Subject: Re: Explicit return type for Hypercall Date: Thu, 09 Apr 2009 14:11:25 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Tej Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 09/04/2009 13:28, "Tej" wrote: >> The return code is ENOSYS, which is appropriate for an unimplemented >> hypercall. > > Still it could be misleading, because in case of kernel modules > "module-uti"l packages overrides ENOSYS with message as "Kernel does > not have module support" > > an explicit return type could be useful here. Separate from the kernel's return code you mean? Yes, you could certainly define a new ioctl that returns the code in the command structure passed to the ioctl, for example. I'd have no problem with that. -- Keir