lkml.org 
[lkml]   [2008]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 01/15] kmemleak: Add the base support
On Thu, 04 Dec 2008 18:50:46 +0000 Catalin Marinas <catalin.marinas@arm.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.



\
 
 \ /
  Last update: 2008-12-04 20:07    [W:0.129 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site