Thread (2 messages) flat view 2 messages, 2 authors, 2011-10-11

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

From: venu <hidden>
Date: 2011-10-10 10:58:29

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 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help