From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754546Ab2A0Ufl (ORCPT ); Fri, 27 Jan 2012 15:35:41 -0500 Received: from mx2.parallels.com ([64.131.90.16]:47935 "EHLO mx2.parallels.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752327Ab2A0Ufk (ORCPT ); Fri, 27 Jan 2012 15:35:40 -0500 Message-ID: <4F230A40.8000203@parallels.com> Date: Sat, 28 Jan 2012 00:34:08 +0400 From: Glauber Costa User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111222 Thunderbird/9.0 MIME-Version: 1.0 To: KOSAKI Motohiro CC: , , , , , , , , , , , , , , , , , , Subject: Re: [RFC c/r 2/4] [RFC] syscalls, x86: Add __NR_kcmp syscall v7 References: <20120127175342.273260614@openvz.org> <20120127175939.795551339@openvz.org> <4F2306BB.5090907@jp.fujitsu.com> In-Reply-To: <4F2306BB.5090907@jp.fujitsu.com> Content-Type: text/plain; charset="ISO-2022-JP" Content-Transfer-Encoding: 7bit X-Originating-IP: [188.255.67.4] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> + case KCMP_SYSVSEM: >> +#ifdef CONFIG_SYSVIPC >> + ret = kcmp_ptr((long)task1->sysvsem.undo_list, >> + (long)task2->sysvsem.undo_list, >> + KCMP_SYSVSEM); >> +#else >> + ret = -EINVAL; > > ENOTSUP is better, I think. because of, EINVAL implicitly mean _caller_ is wrong. > but in this case, it is not bad. only the kernel doesn't have enough feature. > Isn't it usually the case for ENOSYS, then ?