What is the significance of __releases & __acquires in rpm_callback() of power/runtime.c ?

venu bvg_1 at yahoo.com
Mon Oct 10 06:58:29 EDT 2011


While going thro’ run time power management code in K39
power/runtime.c file, am seeing a function definition as given below. Any idea,
what “__releases” & “__acquires” are doing in this function definition? 
 
static int rpm_callback(int (*cb)(struct device *), struct
device *dev)
                __releases(&dev->power.lock)
__acquires(&dev->power.lock)
{
                int
retval;
                ….
                return
retval;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20111010/5d4ed394/attachment.html 


More information about the Kernelnewbies mailing list