[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20081204110312.cd2a1be0.akpm@linux-foundation.org>
Date: Thu, 4 Dec 2008 11:03:12 -0800
From: Andrew Morton <akpm@...ux-foundation.org>
To: Catalin Marinas <catalin.marinas@....com>
Cc: linux-kernel@...r.kernel.org, mingo@...e.hu
Subject: Re: [PATCH 01/15] kmemleak: Add the base support
On Thu, 04 Dec 2008 18:50:46 +0000 Catalin Marinas <catalin.marinas@....com> wrote:
> Or, is there a way to tell whether it's in a kernel
> thread or user process context? Checking current->mm?
Yup, that'll work. There might be small windows during process startup
and termination where a real process can have a NULL ->mm, but those
are probably benign in this case.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists