Samuel Thibault, le Thu 09 Jan 2014 00:39:30 +0100, a écrit : > Justus Winter, le Tue 07 Jan 2014 15:51:28 +0100, a écrit : > > * device/dev_lookup.c: Align kmem_cache objects using __cacheline_aligned. > > Mmm, perhaps it would be more useful to define a typedef with the > attribute, and use it instead of struct kmem_cache?
Mmm, from slab.h it would seem that you can apply the attribute directly to the structure, thus even avoiding the typedef altogether? Samuel