On centos-5 2.6.18 kernel, I get a failure with shmat01. In the setup() function at the end:
/* some architectures (e.g. parisc) are strange, so better always align to * next SHMLBA address. */
       base_addr = (void *)( ((unsigned long)(base_addr) & ~(SHMLBA-1)) + SHMLBA );
This bumps up the address if it's already aligned. Signed-off-by: Bob Hepple <bhepple@promptu.com>.
1 file changed