Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754860AbXJ1BZS (ORCPT ); Sat, 27 Oct 2007 21:25:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752054AbXJ1BZF (ORCPT ); Sat, 27 Oct 2007 21:25:05 -0400 Received: from rhun.apana.org.au ([64.62.148.172]:3305 "EHLO arnor.apana.org.au" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751968AbXJ1BZE (ORCPT ); Sat, 27 Oct 2007 21:25:04 -0400 From: Herbert Xu To: adobriyan@gmail.com (Alexey Dobriyan) Subject: Re: [PATCH 1/2] irq_flags_t: intro and core annotations Cc: jengelh@computergmbh.de, linux-kernel@vger.kernel.org Organization: Core In-Reply-To: <20071027202449.GF9816@martell.zuzino.mipt.ru> X-Newsgroups: apana.lists.os.linux.kernel User-Agent: tin/1.7.4-20040225 ("Benbecula") (UNIX) (Linux/2.6.17-rc4 (i686)) Message-Id: Date: Sun, 28 Oct 2007 09:24:46 +0800 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 799 Lines: 25 Alexey Dobriyan wrote: > > irq_flags_t flags; > > flags = spin_lock_irqXXX(&lock); > spin_unlock_irqYYY(&lock, flags); > > where XXX and YYY are still to be found good names :^) It's also a solution How about flags? flags = spin_lock_irqflags(&lock); spin_unlock_irqflags(&lock, flags); Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - 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/