On Mon, May 11, 2009 at 5:00 PM, RT Mistler <rtmistler@xxxxxxxxxx> wrote: > Hi, > > I've been looking at some kernel modules trying to map an embedded > devices resources and while going through a driver, I encountered an > "if" test that employed "!!", example: > > if !!function_foo(args) { > ... > } > > What does the "!!" do? (I'm familiar with a single "!") IIANM, it does "!" and then does "!" again, forcing boolean value, true or false. -Bob -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ