Re: problem with swap.h

Rik van Riel (H.H.vanRiel@phys.uu.nl)
Mon, 28 Sep 1998 12:56:49 +0200 (CEST)


On Mon, 28 Sep 1998 mummert&partner_meskesm@WestLB.de wrote:

> It seems to me that there is a problem with swap.h in the latest
> development source trees. My watchdog source includes it (via sys/swap.h)
> and then moans about the missing definition of PAGE_SIZE. Shouldn't swap.h
> include this?

Why? Page size is an architecture dependant thing, swap.h is
not arch-dependant and, as such, shouldn't include things like
page size or MMU innards.

> I would like to not include something like asm/page.h from my
> application as I think kernel headers shouldn't be included directly
> by applications.

Then why do you include swap.h? It's at least as much a
kernel header as <asm/page.h> and arguably even more so
(since page.h provides info on the machine you're using
while swap.h provides info on kernel stuff).

Rik.
+-------------------------------------------------------------------+
| Linux memory management tour guide. H.H.vanRiel@phys.uu.nl |
| Scouting Vries cubscout leader. http://www.phys.uu.nl/~riel/ |
+-------------------------------------------------------------------+

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/