Subject: Re: timedwork
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
From: Iain Hibbert <plunky@rya-online.net>
List: tech-kern
Date: 01/13/2007 14:29:01
On Sat, 13 Jan 2007, YAMAMOTO Takashi wrote:

> > I'm thinking something like:
> >
> > 	callout_init(&c);
> > 	callout_setwork(&c, func, arg);
> > 	callout_schedule(&c, timeout);
>
> i implemented it.  see the attached patch.
>
> once callout_setwork() is called on a callout,
> callout_schedule() is only legal operation on the callout.
> (i'm not a fan of making primitives have rich functionalities...)

perhaps KASSERT protection could be deployed, in that case?

callout_schedule() cannot be called multiple times, either..

iain