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

Re: netbase (ping6) and kernel

In message <Pine.LNX.4.10.9910072348511.12229-100000@inkvine.fluff.org>, Chris 
Rutter writes:
>The reason that ping6 probably uses the kernel set_bit() and friends
>is that the kernel versions may be extremely optimised.  Remember
>that they have to work on arbitrary ranges of memory (i.e. not
>just a word).

Yeah.  But in practice, most applications that casually use set_bit et al. 
don't care about performance in the least.  Ping isn't exactly a speed 
critical program for most people.

On the ARM it's especially useless to include <asm/bitops.h> because the 
functions aren't inlined anyway.


Reply to: