Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751554AbaLRVHs (ORCPT ); Thu, 18 Dec 2014 16:07:48 -0500 Received: from mail-lb0-f176.google.com ([209.85.217.176]:61234 "EHLO mail-lb0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751194AbaLRVHr (ORCPT ); Thu, 18 Dec 2014 16:07:47 -0500 MIME-Version: 1.0 Reply-To: rogelio.serrano@gmail.com Date: Thu, 18 Dec 2014 21:07:46 +0000 Message-ID: Subject: atomic_inc and spin_lock_irq From: "Rogelio M. Serrano Jr." To: linux-kernel@vger.kernel.org, PaX Team Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org whats the difference between: atomic_inc(&port->count); and spin_lock_irq(&port->lock); ++port->count; spin_unlock_irq(&port->lock); -- 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/