[Devel] Re: [PATCH] bluetooth bnep: Convert to kthread API.

Andrew Morton akpm at linux-foundation.org
Thu Apr 19 16:24:59 PDT 2007


On Thu, 19 Apr 2007 01:58:51 -0600
"Eric W. Biederman" <ebiederm at xmission.com> wrote:

> From: Eric W. Biederman <ebiederm at xmission.com>
> 
> This patch starts kbenpd using kthread_run replacing
> a combination of kernel_thread and daemonize.  Making
> the code a little simpler and more maintainable.
> 
>

	while (!atomic_read(&s->killed)) {

ho hum.

> +	task = kthread_run(bnep_session, s, "kbnepd %s", dev->name);

It's unusual to have a kernel thread which has a space in its name.  That
could trip up infufficient-defensive userspace tools.

_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list