DragonFly BSD
DragonFly commits List (threaded) for 2003-10
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/sys/vm vm_page.c vm_page.h


From: Hiten Pandya <hmp@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 15 Oct 2003 09:03:04 -0700 (PDT)

hmp         2003/10/15 09:03:04 PDT

  Modified files:
    sys/vm               vm_page.c vm_page.h 
  Log:
  Major contigmalloc() API cleanup:
  
      * split the contigmalloc() function into two distinct
        functions:
  
          - vm_contig_pg_alloc(): this function does the alloc
            of contiguous pages.
  
          - vm_contig_pg_kmap(): this function maps the allocated
            range of pages into a VM map (i.e. kernel map).
  
      * remove the duplicated page queue flush management handling
        and put it into a separate function, vm_contig_pg_clean().
  
  The split is important for some special case drivers, which
  like to allocated >2G contig memory, and then mmpa(2) it to
  userland for various purposes.
  
  By splitting, the contigmalloc/vm_contig_pg API does not
  enforce the client to map the contiguous pages into the
  KVA, which would have otherwise failed the allocation.
  
  These functions will probably be moved to their own file
  some time soon.
  
  Reviewed/Approved/Tested by:	Matt Dillon
  
  Revision  Changes    Path
  1.13      +200 -109  src/sys/vm/vm_page.c
  1.7       +4 -0      src/sys/vm/vm_page.h




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]