WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] My turn to rant about types... bitops

On Wed, 2005-10-05 at 19:17 +0100, Keir Fraser wrote:
> On 5 Oct 2005, at 17:52, Jimi Xenidis wrote:
> 
> > I think around linux-2.4.19 (and thanks to rusty?) bitops.h went 
> > s/void */unsigned long */, any chance is Xen following suit?
> > The next request would be to change all arrays destined for bitops to 
> > be defined using unsigned long.
> > specifically:
> 
> Just cast to 'unsigned long *' when you use those ops. Why work around 
> details of the way that Linux happens to do atomic ops in our 
> interfaces?

A bitmask type might be nice.  Linux has some ugly macros to do just
that, but at least it's explicit ("need this many bits").

Rusty.
-- 
A bad analogy is like a leaky screwdriver -- Richard Braakman


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel