forced page alignment of a struct
Posted: Thu Mar 11, 2004 5:24 pm
I can't figure out how to force a struct to be page-aligned (aligned so the data begins on an address that is a multiple of 4 kilobytes)
I looked through the manual and it only mentioned __alignof__, which is not what I'm looking for...
This is, of course, without pointing the struct directly to a page-aligned address (that's what I'm trying to eliminate).
I looked through the manual and it only mentioned __alignof__, which is not what I'm looking for...
This is, of course, without pointing the struct directly to a page-aligned address (that's what I'm trying to eliminate).