Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752384AbbHMJLS (ORCPT ); Thu, 13 Aug 2015 05:11:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47089 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751906AbbHMJLO (ORCPT ); Thu, 13 Aug 2015 05:11:14 -0400 Date: Thu, 13 Aug 2015 11:11:11 +0200 From: Radim =?utf-8?B?S3LEjW3DocWZ?= To: Christian Borntraeger Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Paolo Bonzini Subject: Re: [PATCH v2 1/5] KVM: add kvm_has_request wrapper Message-ID: <20150813091110.GA26977@potion.brq.redhat.com> References: <1438792381-19453-1-git-send-email-rkrcmar@redhat.com> <1438792381-19453-2-git-send-email-rkrcmar@redhat.com> <55CBA523.3010007@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55CBA523.3010007@de.ibm.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1099 Lines: 32 2015-08-12 21:57+0200, Christian Borntraeger: > kvm_check_request is now somewhat a misnomer (what is the difference between test and check?) kvm_check_request has always been poetic; it uses two meanings of check, "examine" and "tick off", at the same time. We also want something that clears the request, so kvm_drop_request was my best candidate so far. > for the new interface. maybe we can rename kvm_check_request in a separate patch somewhen. I wonder why haven't we copied the naming convention from bit operations (or if programming would be better if German was its language), kvm_test_request kvm_set_request kvm_clear_request kvm_test_and_clear_request The only disadvantage is that kvm_test_and_clear_request is longer than kvm_check_request 123456789 by whooping 9 characters. I could live with that. -- 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/