spin_lock

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

 




#define spin_lock(lock)         (void)(lock) /* Not "unused variable". */

Can anyone explain to me how this works? Is it a gcc feature?
I saw it in include/linux/spinlock.h
Thanks.


-- 
Flávio Bruno Leitner <flavio@conectiva.com>
Pesquisa e Desenvolvimento http://fly.to/fbl
Conectiva Linux http://www.conectiva.com.br/
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[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