[linux-pm] __releases and __acquires macros in compiler.h

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

 



On Thu, 4 May 2006 11:29:23 +0530 rasmit.ranjan@xxxxxxxxx wrote:

> 
> Thanks Randy. Can you please explain it elaboraly.
> What I mean, is why this sparse static checker is used and is there any
> toll to use it ?

The tool to use it is called 'sparse'.  You can get it from its
git repository (you can view it here:
http://www.kernel.org/git/?p=linux/kernel/git/torvalds/sparse.git;a=summary ).
Or you can download daily tarball snapshots of it from:
http://www.codemonkey.org.uk/projects/git-snapshots/sparse/

As far as explaining and using it, you'll just need to look at
kernel source code and this email from Linus:
http://marc.theaimsgroup.com/?l=linux-sparse&m=109865107109043&w=2


> Thanks and regards,
> Rasmit.
> 	
> 
> > -----Original Message-----
> > From: Randy.Dunlap [mailto:rdunlap@xxxxxxxxxxxx]
> > Sent: Thursday, May 04, 2006 11:23 AM
> > To: Rasmit Ranjan (WT01 - Semiconductors & Consumer Electronics)
> > Cc: linux-kernel-digest@xxxxxxxxxxxxxxxxx;
> > linux-pm@xxxxxxxxxxxxxx; linux-usb-devel@xxxxxxxxxxxxxxxxxxxxx
> > Subject: Re: [linux-pm] __releases and __acquires macros in compiler.h
> >
> > On Thu, 4 May 2006 11:13:20 +0530 rasmit.ranjan@xxxxxxxxx wrote:
> >
> > > Hi all,
> > >     I came across two macros __releases and __acquires defined in
> > > compiler.h.
> > > Can anyone please tell me the exact use of these two macros.
> >
> > They are for the sparse static checker to count locks
> > released and acquired, to make sure that they are balanced.
> >
> > ---
> > ~Randy
> >
> 
> 
> The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
> 
> WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
> 
> www.wipro.com
> 


---
~Randy

[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux