what does it use two "!!"

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

 



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@xxxxxxxx

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux