bug-hurd
[Top][All Lists]
Advanced

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

Re: oskit-mach & oskit-20010214: network


From: Roland McGrath
Subject: Re: oskit-mach & oskit-20010214: network
Date: Fri, 7 Sep 2001 04:16:54 -0400 (EDT)

Hmm, I think that stuff changed in the oskit.  That is, what the Linux bh
stuff maps to.  My recollections are fuzzy but the <oskit/dev/softirq.h>
seems to be new since what I wrote oskit-mach to deal with.

Note the XXX comment in oskit-mach/oskit/ds_net.c, which might no longer be
true about the oskit.  It might now be possible to do some more clever
things (copy avoidance) in that code.  But anyway.

You need to override the osenv_softirq_* functions with a new
implementation in oskit-mach/oskit/ that works by calling setsoftclock()
and have softclock_oskit check the software interrupt state and call its
handlers.  For disable/enable softintr you can use splsoftclock/splx
similar to osenv_intr_* (in oskit-mach/oskit/osenv_synch.c)--actually
nothing in the oskit calls those entry points.

You don't really have to make these osenv callback functions fully general
to handle any possible call according to their interface.  In oskit code
code we are using for oskit-mach, there is only this one called in the
linux net driver glue code and so handling what that needs is sufficient.








reply via email to

[Prev in Thread] Current Thread [Next in Thread]