Re: Sharing memory between user and kernel spaces [Re: copy_to/from_user and a bottom half]

From: Ulrich Drepper (drepper@redhat.com)
Date: Fri May 19 2000 - 06:53:52 EDT

  • Next message: Thomas Sailer: "Re: Linux-2.2.15: access_ok"

    "Andi Kleen" <ak@suse.de> writes:

    > > 1. App allocates memory in user space (page-aligned).
    > > (BTW, I didn't find the way of doing it on Linux beside to allocate
    > > memory with malloc() and then align it to the page boundaries).
    >
    > mmap()

    memalign() (or posix_memalign() in glibc 2.2).

    -- 
    ---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
    Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
    Red Hat          `--' drepper at redhat.com   `------------------------
    

    - 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/



    This archive was generated by hypermail 2b29 : Fri May 19 2000 - 06:56:08 EDT