DragonFly kernel List (threaded) for 2007-11
DragonFly BSD
DragonFly kernel List (threaded) for 2007-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Is there analog of `softint_establish and co.` in DFly kernel?


From: Dmitry Komissaroff <dxi@xxxxxxx>
Date: Wed, 28 Nov 2007 10:06:19 +0300

В письме Mon, 26 Nov 2007 09:53:54 -0800, Matthew Dillon
написал:

> 
> :Which mechanisms in DFLy kernel may use as analog with some
> :functianality of softint_XXX?
> :
> 
>     We have a software interrupt mechanism via the SWI_* defines in
>     sys/interrupt.h.  Various bits of code use them, for example
>     the kernel task queue (kern/subr_taskqueue.c), CAM (bus/cam/cam_xpt.c),
>     and a few others.
> 
I'm playing a bit with mechanism (register_swi(), unregister_swi() and
sched_ithd()). It work, but it not applicable for widely usage, because
number of SWI_XXX slots very limited. To example, someone want create
some driver and use for sending data to device function, called by
software interrupt. Today, this someone must change kernel sources at
least in <sys/interrupt.h> to add define of new SWI_XXX. If not to do
this, there is risk, to use number of softint, used someone else...





[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]