lkml.org 
[lkml]   [1998]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: problem with swap.h
    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/

    \
     
     \ /
      Last update: 2005-03-22 13:44    [W:0.022 / U:31.392 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site