All of lore.kernel.org
 help / color / mirror / Atom feed
* contextual attributes
@ 2008-11-17 21:47 Yoann Padioleau
  2008-11-17 22:10 ` Johannes Berg
  0 siblings, 1 reply; 2+ messages in thread
From: Yoann Padioleau @ 2008-11-17 21:47 UTC (permalink / raw)
  To: linux-sparse



Hi, 

Is it possible by using the __attribute((context(x,y)) sparse
attribute to enforce statically that all the callers of 
certain functions do certain actions such as disabling interrupts ?

I would like an attribute like __assume_disabled_interrupt and 
have such programs:


int __assume_disabled_interrupt    
startpoint() 
{
	return 1;
}


int f1ok()
{
	spin_lock_irq();
	startpoint();
	spin_unlock_irq();
}


int f1bad()
{
	startpoint();
}


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-11-17 22:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-17 21:47 contextual attributes Yoann Padioleau
2008-11-17 22:10 ` Johannes Berg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.