David Woodhouse wrote:
Yes, but we have to draw the line somewhere. Otherwise we just continue exporting crap like stomic.h and letting people shoot themselves in the foot. I'm inclined to agree with hch that elf.h and page.h fall on the same side of that line as atomic.h -- but since I know that merits some discussion, it's something I've deferred for now. Let's get the basic and obvious stuff done first and then we can argue about the remaining details.
page.h I agree with. elf.h I don't.page.h and atomic.h both have in common that on some architectures, the needs of userspace and the needs of the kernel are very different (what's atomic in kernel space isn't necessarily atomic in userspace.) Similar, PAGE_SIZE makes sense for the kernel, but not for userspace (it could vary.)
elf.h is different -- it describes an interface. As such, it *should* be the same on both sides of the universe.
-hpa - : send the line "unsubscribe linux-ia64" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
![]() |