[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |