what does it use two "!!"

anish singh anish198519851985 at gmail.com
Mon Apr 1 03:18:11 EDT 2013


!! is generally used to make the return bool value.
You can use kernelnewbies and linux kernel mailing list.


On Mon, Apr 1, 2013 at 12:43 PM, Ben Wu <crayben at yahoo.cn> wrote:

>
>
> Dear All:
> 1> I found some placeuse two "!!", what's means
>     if(button->gpio != INVALID_GPIO)
>         state = !!((gpio_get_value(button->gpio) ? 1 : 0) ^
> button->active_low);
>     else
>         state = !!button->adc_state;
>
> 2> is there some MSN group to study linux kernel or discuss it ?
>
> Thanks and Best Regards
> Ben Wu
> MSN:crayben at yahoo.cn
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130401/57917fa7/attachment.html 


More information about the Kernelnewbies mailing list