lkml.org 
[lkml]   [2011]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 01/12] export kernel call get_task_comm()
On Tue, Feb 08, 2011 at 08:28:52PM +0000, Alan Cox wrote:
> On Tue, 8 Feb 2011 11:44:16 -0800 (PST)
> > > From current you can just dereference current->comm, and access from
> > > other threads from drivers is a bad idea.
>
> You need to take the locks for it - which get_task_comm encapsulates.

Not for current->comm, which is the only thing it cares about.


\
 
 \ /
  Last update: 2011-02-08 21:31    [W:0.123 / U:0.396 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site