lkml.org 
[lkml]   [2005]   [Apr]   [1]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
Messages in this thread
/
DateThu, 31 Mar 2005 23:26:25 -0800
FromAndrew Morton <>
SubjectRe: [1/1] CBUS: new very fast (for insert operations) message bus based on kenel connector.
Evgeniy Polyakov <johnpol@2ka.mipt.ru> wrote:
>
> > > +static int cbus_event_thread(void *data)
>  > > +{
>  > > +	int i, non_empty = 0, empty = 0;
>  > > +	struct cbus_event_container *c;
>  > > +
>  > > +	daemonize(cbus_name);
>  > > +	allow_signal(SIGTERM);
>  > > +	set_user_nice(current, 19);
>  > 
>  > Please use the kthread api for managing this thread.
>  > 
>  > Is a new kernel thread needed?
> 
>  Logic behind cbus is following: 
>  1. make insert operation return as soon as possible,
>  2. deferring actual message delivering to the safe time
> 
>  That thread does second point.

But does it need a new thread rather than using the existing keventd?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-04-06 11:31    [W:0.271 / U:0.250 seconds]
©2003-2008 Jasper Spaans