Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756993Ab1DVXcf (ORCPT ); Fri, 22 Apr 2011 19:32:35 -0400 Received: from mga11.intel.com ([192.55.52.93]:36556 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753944Ab1DVXce (ORCPT ); Fri, 22 Apr 2011 19:32:34 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.64,256,1301900400"; d="scan'208";a="682744386" From: james_p_freyensee@linux.intel.com To: gregkh@suse.de Cc: linux-kernel@vger.kernel.org, suhail.ahmed@intel.com, james_p_freyensee@linux.intel.com, christophe.guerard@intel.com Subject: [PATCH 1/4] export kernel call get_task_comm(). Date: Fri, 22 Apr 2011 16:32:27 -0700 Message-Id: <1303515150-1718-2-git-send-email-james_p_freyensee@linux.intel.com> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 997 Lines: 32 From: J Freyensee This allows drivers who call this function to be compiled modularly. Otherwise, a driver who is interested in this type of functionality has to implement their own get_task_comm() call, causing code duplication in the Linux source tree. Signed-off-by: J Freyensee --- fs/exec.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/exec.c b/fs/exec.c index 8328beb..e1ac338 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -1004,6 +1004,7 @@ char *get_task_comm(char *buf, struct task_struct *tsk) task_unlock(tsk); return buf; } +EXPORT_SYMBOL_GPL(get_task_comm); void set_task_comm(struct task_struct *tsk, char *buf) { -- 1.7.2.3 -- 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/