sppp and Giant

Hans Petter Selasky hselasky at c2i.net
Thu Jun 16 21:13:37 GMT 2005


Hi,

In some existing code it says:

NET_NEEDS_GIANT("i4b_isppp");

s = splimp();
 
sppp_input(&sc->sc_if, m);
 
splx(s);

I have rewritten that code to use its own mutex, 
but does sppp_input() require Giant to be locked?


Can I remove "NET_NEEDS_GIANT(..)" if my "if_start" callback
does not require Giant to be locked?


--HPS


More information about the freebsd-hackers mailing list