[Asterisk-bsd] OSLEC on FreeBSD

Ian FREISLICH ianf at clue.co.za
Fri Jul 31 07:18:42 CDT 2009


Ian FREISLICH wrote:
> Trunk, compiles with this patch:
> 
> Index: zaptel/zaptel.c
> ===================================================================
> --- zaptel/zaptel.c     (revision 318)
> +++ zaptel/zaptel.c     (working copy)
> @@ -244,7 +244,7 @@
>  
>          while (1) {
>                  if (kthread_must_exit) {
> -                        kthread_exit(0);
> +                        kproc_exit(0);
>                  }
>  
>                  ZAP_LOCK(toselwakeup_lock);
> @@ -430,8 +430,13 @@
>  
>         snprintf(tmpname, 20, "%s%d", name, u);
>  
> -       *dev = make_dev(&zt_devsw, unit2minor(u),
> +       *dev = make_dev(&zt_devsw,
> +#if __FreeBSD_version < 800062
> +           unit2minor(u),
> +#else
> +           u,
>                 UID_ROOT, GID_WHEEL, 0600, tmpname);
> +#endif
>  
>         if(*dev)
>         {
> @@ -1221,7 +1226,7 @@
>                 ZAP_LOCK_INIT(toselwakeup_lock, "toselwakeup_lock");
>  
>                 kthread_must_exit = 0;
> -               if (kthread_create(selwakeup_thread_handler, (void *)toselwak
eup
> , &kthread, 0, 0, "zt_selwakeup_thread"))
> +               if (kproc_create(selwakeup_thread_handler, (void *)toselwakeu
p, 
> &kthread, 0, 0, "zt_selwakeup_thread"))
>                 {
>                         printf("Failed to create kthread\n");
>                 }
> 
> 
> But, doesn't load:

I spoke too soon.  My kernel sources and actual loaded kernel were
out of sync.   It does load now.

Do you know what it will take to port the wctdm and wctdm24xxp
driver I have a Wildcard TDM400P and I'm expecting a TDM800P (PCI-e)
to arrive in the next few weeks?  I'm happy to give it a bash myself
if you can provide some pointers.

Ian

--
Ian Freislich



More information about the Asterisk-BSD mailing list