Re: [PATCH 1/4] export kernel call get_task_comm().

From: David Rientjes
Date: Tue Apr 19 2011 - 19:22:25 EST


On Tue, 19 Apr 2011, james_p_freyensee@xxxxxxxxxxxxxxx wrote:

> From: J Freyensee <james_p_freyensee@xxxxxxxxxxxxxxx>
>
> 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 <james_p_freyensee@xxxxxxxxxxxxxxx>

Acked-by: David Rientjes <rientjes@xxxxxxxxxx>

There've been some other patchsets proposed recently that need to print a
thread's comm and since /proc/pid/comm can change the comm's of other
threads out from under them, it's necessary to serialize access to it with
task_lock(). This patch certainly makes it easier for modules to do so
correctly, thanks!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/